Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

RE: Replacement for DockPanel.Dock="Fill"?

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 01-10-2006   #1 (permalink)
zcshu
Guest


 

RE: Replacement for DockPanel.Dock="Fill"?


<Menu DockPanel.Dock="Top">
<MenuItem Header="Header" />
<MenuItem Header="Header" />
</Menu>
<StatusBar DockPanel.Dock="Bottom" >
<StatusBarItem> aaaaaa </StatusBarItem>
</StatusBar>
<TextBox />

Is this you want?

Thanks.

"viliescu" wrote:

> You actually have to put something in the StatusBar (a StatusBarItem) in
> order to show up.
>
> <StatusBar DockPanel.Dock="Bottom">
> <StatusBarItem>
> ...
> </StatusBarItem>
> </StatusBar>
>
> "Gary" wrote:
>
> > Thanks. That works. Now on to the next problem. I want a Menu docked to the
> > top of a Window, a StatusBar docked to the bottom, and the TextBox to fill in
> > between. For some reason I can only see the Menu and the TextBox. Below is my
> > XAML.
> >
> > <DockPanel LastChildFill="True">
> > <Menu DockPanel.Dock="Top">
> > ...
> > </Menu>
> > <StatusBar DockPanel.Dock="Bottom" />
> > <TextBox />
> > </DockPanel>
> >
> > I tried swapping the Menu, StatusBar, and TextBox elements around and I was
> > unable to get the desired effect.
> >
> > "viliescu" wrote:
> >
> > > <DockPanel LastChildFill="True">
> > > ...
> > > <TextBox/>
> > > </Dock>
> > >
> > > LastChildFill attribute determines if the last child of the dock panel will
> > > fill the remaining area.
> > >
> > > Valentin
> > >
> > >
> > > "Gary" wrote:
> > >
> > > > I am trying to get a TextBox to fill the left over space in my Window.
> > > > Several samples on the web say "Fill" is a valid selection for DockPanel.Dock
> > > > just like Windows Forms. Even MSDN has DockPanel.Dock="Fill" in one of its
> > > > samples. However, this does not show up in intellisense. The only selections
> > > > I get are "Top, Bottom, Left, and Right." I tried using "Fill" anyway and I
> > > > get a compiler error. I am aware it is case sensitive.
> > > >
> > > > Was "Fill" removed for Beta 1? If so, where is its replacement?


My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacement for SendKeys.Send "{F1}" necessary? Gina Vista General 2 02-27-2008 09:25 AM
Vista not wotking with "My Computer" or "Control Panel", "Screen Saver" Platebanger Vista General 6 02-05-2008 08:54 AM
Deleted "music" folder, can't take ownership of replacement. Philipp Vista file management 1 05-29-2007 03:11 PM
WM5 Sync with Vista "Windows Calender", "Contacts", and "Mail" Tony Vista General 1 02-16-2007 06:20 PM
Send to "replacement" David Sherman Vista General 0 06-09-2006 07:18 AM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51