Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

XAML property corresponding to Autosize in Windows Forms

Closed Thread
 
Thread Tools Display Modes
Old 02-06-2007   #1 (permalink)
Shawnk
Guest


 

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


 

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.

Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Forms without ShowDialog? SeanInSeattle PowerShell 0 1 Week Ago 05:06 PM
simulate continuous forms & subforms in a windows forms application BillE .NET General 0 05-07-2008 03:20 PM
Use my custom TypeDescriptor to obtains default Value on property inXAML Property Editor of Visual Studio 2008 azerty Avalon 0 04-14-2008 06:14 AM
Windows Forms Editor Kryten PowerShell 9 01-17-2008 02:03 PM
Textbox AutoSize? everydaypanos Avalon 1 04-05-2007 07:24 AM








Vistax64.com 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 2005-2008

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 47 48 49 50