Windows Vista Forums

XAML property corresponding to Autosize in Windows Forms
  1. #1


    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.

      My System SpecsSystem Spec

  2. #2


    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.


      My System SpecsSystem Spec

XAML property corresponding to Autosize in Windows Forms problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Focus To Specific Property In Property Grid Derek Hart .NET General 10 06 Oct 2008
simulate continuous forms & subforms in a windows forms application BillE .NET General 0 07 May 2008
Use my custom TypeDescriptor to obtains default Value on property inXAML Property Editor of Visual Studio 2008 azerty Avalon 0 14 Apr 2008
Textbox AutoSize? everydaypanos Avalon 1 05 Apr 2007
How to deploy an XAML-based App with its XAML-UI-File? Solveigh Avalon 6 08 Nov 2006