This is a migrated thread and some comments may be shown as answers.

Maximized and RestrictedAreaMargin

1 Answer 89 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Patrik
Top achievements
Rank 1
Patrik asked on 24 Oct 2012, 08:31 AM
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

1 Answer, 1 is accepted

Sort by
0
Patrik
Top achievements
Rank 1
answered on 24 Oct 2012, 09:18 AM
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>
Tags
Window
Asked by
Patrik
Top achievements
Rank 1
Answers by
Patrik
Top achievements
Rank 1
Share this question
or