![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | 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 | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Replacement for SendKeys.Send "{F1}" necessary? | Vista General | |||
| Vista not wotking with "My Computer" or "Control Panel", "Screen Saver" | Vista General | |||
| Deleted "music" folder, can't take ownership of replacement. | Vista file management | |||
| WM5 Sync with Vista "Windows Calender", "Contacts", and "Mail" | Vista General | |||
| Send to "replacement" | Vista General | |||