Maximized and RestrictedAreaMargin

2 posts, 0 answers
  1. Patrik
    Patrik avatar
    56 posts
    Member since:
    Jul 2010

    Posted 24 Oct 2012 Link to this post

    Hello Telerik.

    We're depending on the functionality you had in your earlier releases where we could set the RestrictedAreaMargin property and the Maximized state of a RadWindow listened to this setting. For example: we have a toolbar (similiar to the Windows taskbar at the bottom of the screen) and we had set the RestrictedAreaMargin to 0.0, 0.0, 0.0, 40.0 so when a RadWindow was maximized it didn't cover the toolbar at the bottom of the screen. 

    Can we somehow implement this functionality either through styling the RadWindow or through overriding the RadWindow class?

    Best regards,
    Patrik Edberg
  2. Patrik
    Patrik avatar
    56 posts
    Member since:
    Jul 2010

    Posted 24 Oct 2012 Link to this post

    Hello, I solved it by adding a new Storyboard frame in the Maximized VisualState:
    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" Storyboard.TargetName="WindowOuterBorder">
        <DiscreteObjectKeyFrame KeyTime="0" Value="0 0 0 40"/>
    </ObjectAnimationUsingKeyFrames>
  3. DevCraft banner
Back to Top