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 - XAML property corresponding to Autosize in Windows Forms

 
 
Old 02-06-2007   #1 (permalink)
Shawnk


 
 

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 SpecsSystem Spec
Old 02-08-2007   #2 (permalink)
Shawnk


 
 

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 SpecsSystem Spec
 

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


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