Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista Tutorial - RE: Replacement for DockPanel.Dock="Fill"?

 
 
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
 

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


Vista Forums 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 Ltd

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