![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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) |
| | XAML property corresponding to Autosize in Windows Forms I have an animated leftside navigation panel that can collapse. I want the right side 'data panel' to automatically expand and follow the animation of the left side panel. I have a variety of controls (in different utilities, apps, etc) in the 'data panel' and am looking for an 'Autosize' property (like in Windows Forms) in XAML. I have done some testing and the XAML controls do not seem to be 'following' the animation (as a default render behaviour). Is there a 'XAML' based property that I can set to cause 'follow the animation' behavior? The desired result is that data panel elements will automatically expand and follow the Storyboard based animation expand/collapse sizing. Thanks much in advance. Shawnk (a XAML newbie :-) PS. There are a lot of newbie XAML coders looking for this on the Internet. |
My System Specs![]() |
| | #2 (permalink) |
| | RE: XAML property corresponding to Autosize in Windows Forms After a lot of experimentation I found out most default behaviour will autosize using <.... Width = "Auto" ..> or on some parent elements <.... HorizontalAlignment = "Stretch" ...> However the Stackpanel and Dockpanel behave differently (as containers). The Dockpanel seems to expand and collapse in situations where the stackpanel (in the exact same situation) will not automatically expand/contract. Shawnk "Shawnk" wrote: > I have an animated leftside navigation panel that can collapse. > > I want the right side 'data panel' to automatically expand and > follow the animation of the left side panel. > > I have a variety of controls (in different utilities, apps, etc) in the > 'data panel' and am looking for an 'Autosize' property (like in Windows > Forms) in XAML. > > I have done some testing and the XAML controls do not seem to be 'following' > the > animation (as a default render behaviour). > > Is there a 'XAML' based property that I can set to cause 'follow the > animation' > behavior? > > The desired result is that data panel elements will automatically expand and > follow the Storyboard based animation expand/collapse sizing. > > Thanks much in advance. > > Shawnk (a XAML newbie :-) > > PS. There are a lot of newbie XAML coders looking for this on the Internet. |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Set Focus To Specific Property In Property Grid | .NET General | |||
| Is it possible to include XAML files into another XAML file? | .NET General | |||
| simulate continuous forms & subforms in a windows forms application | .NET General | |||