![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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 Specs![]() |
![]() |
| 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 |