RadWindow: unintended animation

4 posts, 0 answers
  1. Thomas
    Thomas avatar
    8 posts
    Member since:
    May 2011

    Posted 01 Sep 2011 Link to this post

    Hello Telerik Team,

    we've updated our telerik version to Q2 and with the new version the RadWindow is animated on shown with an slide in from the bottom right corner to the center (while the property WindowStartupLocation is set to "CenterOwner"). We didn't update all the theme files to Q2 because we modified a lot of them. We tried to disable this animation but we didn't found any place in the theme files, were this effect is set.
    Could you help us?
  2. Pana
    Admin
    Pana avatar
    748 posts

    Posted 03 Sep 2011 Link to this post

    Hi Thomas,

    I have tried the RadWindow of Q2 with theme of the previous release (Q1 SP1) and it seems to work without animation. Could you give me more details? Which version is the one you are upgrading from? Could you share me the RadWindow Styles with all resources used like brushes converters etc. so I can reproduce it here?

    Regards,
    Pana
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. DevCraft banner
  4. Thomas
    Thomas avatar
    8 posts
    Member since:
    May 2011

    Posted 05 Sep 2011 Link to this post

    Hi Pana,

    you are right, we're upgrading from Q1 SP1. I can give you the Window.xaml theme file we are using (from Theme "Windows 7"), but I'm afraid that this is not the problem because I would think we didn't change any important thing. Is there maybe a reference to any other style/theme, which isn't found in Window.xaml?
    As you can see I tried to disable the animation by setting the AnimationManager.AnimationSelector to null, but nothing happened.

    Regards,
    Thomas

                 
        xmlns:animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls"
        xmlns:telerikTransitions="clr-namespace:Telerik.Windows.Controls.TransitionEffects;assembly=Telerik.Windows.Controls"
        xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
         
     
     
    xmlns:telerikBreadcrumb="clr-namespace:Telerik.Windows.Controls.Breadcrumb;assembly=Telerik.Windows.Controls.Navigation"   
        xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:tileView="clr-namespace:Telerik.Windows.Controls.TileView;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:telerikNavigationPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"
        xmlns:telerikToolBar="clr-namespace:Telerik.Windows.Controls.ToolBar;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
        xmlns:mscorlib="clr-namespace:System;assembly=mscorlib"
        xmlns:dragDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls"
        xmlns:animationNavigation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:treeView="clr-namespace:Telerik.Windows.Controls.TreeView;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:telerikTabControl="clr-namespace:Telerik.Windows.Controls.TabControl;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:book="clr-namespace:Telerik.Windows.Controls.Book;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:outlookBarPrimitives="clr-namespace:Telerik.Windows.Controls.OutlookBar;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:primitives="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
     
    >
        <LinearGradientBrush x:Key="HeaderButton_OverBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#CCBBDDF5" Offset="0"/>
            <GradientStop Color="#CC80B4D6" Offset="0.5"/>
            <GradientStop Color="#CC1C75A9" Offset="0.5"/>
            <GradientStop Color="#CC389CC9" Offset="0.85"/>
            <GradientStop Color="#CC29DDE8" Offset="1"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="HeaderButton_PressedBackgroundBrush" EndPoint="0.5,1"
                StartPoint="0.5,0">
            <GradientStop Color="#FFA2C1D4" Offset="0" />
            <GradientStop Color="#FF4C7992" Offset="0.5" />
            <GradientStop Color="#FF092847" Offset="0.5" />
            <GradientStop Color="#FF1A5F80" Offset="0.85" />
            <GradientStop Color="#FF12E7DE" Offset="1" />
        </LinearGradientBrush>
        <SolidColorBrush Color="#FFA0AFC3" x:Key="ButtonArea_OuterBorderBrush" />
        <LinearGradientBrush x:Key="HeaderButton_NormalBackgroundBrush" EndPoint="0.5,1"
                StartPoint="0.5,0">
            <GradientStop Color="#00000000" Offset="0" />
            <GradientStop Color="#0F000000" Offset="0.5" />
            <GradientStop Color="#30000000" Offset="0.5" />
            <GradientStop Color="#14000000" Offset="0.845" />
            <GradientStop Color="#19FFFFFF" Offset="1" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="HeaderButton_ShadowStrokeBrush" EndPoint="0.5,1" StartPoint="0.5,0"
                MappingMode="RelativeToBoundingBox">
            <GradientStop Color="#FF00D2FF" Offset="0.19" />
            <GradientStop Color="#FF00D2FF" Offset="0.753" />
            <GradientStop Color="#0000D2FF" Offset="1" />
            <GradientStop Color="#0000D2FF" Offset="0" />
            <GradientStop Color="#0000D2FF" Offset="0.19" />
            <GradientStop Color="#0000D2FF" Offset="0.752" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="HeaderButton_ShadowOpacityMaskBrush" EndPoint="0,0.5"
                StartPoint="1,0.5" MappingMode="RelativeToBoundingBox">
            <GradientStop Color="#E5FFFFFF" Offset="0.15" />
            <GradientStop Color="#E5FFFFFF" Offset="0.85" />
            <GradientStop Color="#00FFFFFF" Offset="0" />
            <GradientStop Color="#00FFFFFF" Offset="0.98682502596053989" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="HeaderButton_ShadowStroke2Brush" EndPoint="0.5,1" StartPoint="0.5,0"
                MappingMode="RelativeToBoundingBox">
            <GradientStop Color="#FF00D2FF" Offset="0.19" />
            <GradientStop Color="#FF00D2FF" Offset="0.81" />
            <GradientStop Color="#0000D2FF" Offset="0.94" />
            <GradientStop Color="#0000D2FF" Offset="0.06" />
            <GradientStop Color="#0000D2FF" Offset="0.19" />
            <GradientStop Color="#0000D2FF" Offset="0.791" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="CloseButton_OverBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFF2C7BF" Offset="0" />
            <GradientStop Color="#FFE5715D" Offset="0.5" />
            <GradientStop Color="#FFB62107" Offset="0.5" />
            <GradientStop Color="#FFF1D86C" Offset="1" />
            <GradientStop Color="#FFD26324" Offset="0.85" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="CloseButton_PressedBackgroundBrush" EndPoint="0.5,1"
                StartPoint="0.5,0">
            <GradientStop Color="#FFC6A18A" Offset="0" />
            <GradientStop Color="#FF974126" Offset="0.5" />
            <GradientStop Color="#FF5E1002" Offset="0.5" />
            <GradientStop Color="#FFE6BA15" Offset="1" />
            <GradientStop Color="#FF764708" Offset="0.85" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="CloseButton_NormalBackgroundBrush" EndPoint="0.5,1"
                StartPoint="0.5,0">
            <GradientStop Color="#FFF4CAC2" Offset="0" />
            <GradientStop Color="#FFCC7D6D" Offset="0.5" />
            <GradientStop Color="#FFB94630" Offset="0.5" />
            <GradientStop Color="#FFF4B19C" Offset="1" />
            <GradientStop Color="#FFBE7360" Offset="0.85" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="CloseButton_ShadowStrokeBrush" EndPoint="0.5,1" StartPoint="0.5,0"
                MappingMode="RelativeToBoundingBox">
            <GradientStop Color="#99FB631D" Offset="0.19" />
            <GradientStop Color="#99FB631D" Offset="0.82" />
            <GradientStop Color="#00FB631D" Offset="1" />
            <GradientStop Color="#00FB631D" Offset="0" />
            <GradientStop Color="#00FB631D" Offset="0.19" />
            <GradientStop Color="#00FB631D" Offset="0.803" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="CloseButton_ShadowOpacityMaskBrush" EndPoint="0,0.5"
                StartPoint="1,0.5" MappingMode="RelativeToBoundingBox">
            <GradientStop Color="#99FFFFFF" Offset="0.09" />
            <GradientStop Color="#99FFFFFF" Offset="0.861" />
            <GradientStop Color="#00FFFFFF" Offset="0" />
            <GradientStop Color="#00FFFFFF" Offset="0.98682502596053989" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="CloseButton_ShadowStroke2Brush" EndPoint="0.5,1" StartPoint="0.5,0"
                MappingMode="RelativeToBoundingBox">
            <GradientStop Color="#99F77032" Offset="0.172" />
            <GradientStop Color="#99F67C43" Offset="0.82" />
            <GradientStop Color="#00FF5000" Offset="1" />
            <GradientStop Color="#00FB631D" Offset="0.06" />
            <GradientStop Color="#00FF5000" Offset="0.172" />
            <GradientStop Color="#00FF5000" Offset="0.92" />
        </LinearGradientBrush>
        <SolidColorBrush Color="#0C000000" x:Key="BorderShadowColor1" />
        <SolidColorBrush Color="#19000000" x:Key="BorderShadowColor2" />
        <SolidColorBrush Color="#33000000" x:Key="BorderShadowColor3" />
        <SolidColorBrush Color="#4C000000" x:Key="BorderShadowColor4" />
        <SolidColorBrush x:Key="RadWindow_OuterOuterBorder" Color="#FFA0AFC3" />
        <SolidColorBrush x:Key="RadWindow_OuterBorder" Color="#FFFFFFFF" />
        <SolidColorBrush Color="#7F000000" x:Key="HeaderButton_StrokeBrush" />
        <LinearGradientBrush x:Key="HeaderButton_FillBrush" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFDFDFD" Offset="0" />
            <GradientStop Color="#FFDDDDDD" Offset="0.5" />
        </LinearGradientBrush>
        <SolidColorBrush Color="#99FFFFFF" x:Key="ButtonArea_InnerBorderBrush" />
        <SolidColorBrush x:Key="RadWindow_InnerBorder" Color="#FFFFFFFF" />
        <SolidColorBrush x:Key="RadWindow_InnerMostBorder" Color="#FFA0AFC3" />
        <SolidColorBrush x:Key="RadWindow_InnerBackground" Color="#FFFCFCFC" />
        <LinearGradientBrush x:Key="RadWindow_OuterBackground" EndPoint="0.742,0.854" StartPoint="0.258,0.146">
            <GradientStop Color="#99F1F5FB" Offset="0"/>
            <GradientStop Color="#99F1F5FB" Offset="0.181"/>
            <GradientStop Color="#99F0F5FB" Offset="0.164"/>
            <GradientStop Color="#99FFFFFF" Offset="0.142"/>
            <GradientStop Color="#99F1F5FB" Offset="0.328"/>
            <GradientStop Color="#B2FFFFFF" Offset="0.358"/>
            <GradientStop Color="#99F1F5FB" Offset="0.478"/>
            <GradientStop Color="#99F1F5FB" Offset="1"/>
            <GradientStop Color="#99F1F5FB" Offset="0.578"/>
            <GradientStop Color="#BFFFFFFF" Offset="0.621"/>
            <GradientStop Color="#99F1F5FB" Offset="0.379"/>
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="WindowBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FF029ED8" Offset="1" />
            <GradientStop Color="#FF00D2FF" Offset="0" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="ModalBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#5900BCFF" Offset="1" />
            <GradientStop Color="#5900455E" Offset="0" />
        </LinearGradientBrush>
        <SolidColorBrush x:Key="RadConfirm_OuterStrokeBrush" Color="#FFB3B3B3" />
        <RadialGradientBrush x:Key="RadConfirm_InnerBackgroundBrush" RadiusX="0.618667"
                RadiusY="0.61864" Center="0.483044,0.5" GradientOrigin="0.483044,0.5">
            <RadialGradientBrush.RelativeTransform>
                <TransformGroup />
            </RadialGradientBrush.RelativeTransform>
            <GradientStop Color="#FF00BAFF" Offset="0" />
            <GradientStop Color="#FF004BA5" Offset="1" />
        </RadialGradientBrush>
        <SolidColorBrush x:Key="RadConfirm_InnerStrokeBrush" Color="#FFFFFFFF" />
        <SolidColorBrush x:Key="RadConfirm_QuestionMarkBackgroundBrush" Color="#FFFFFFFF" />
        <SolidColorBrush x:Key="BorderOuterBrush" Color="#FFFCFCFC" />
        <SolidColorBrush x:Key="InputTextBoxBackground" Color="#FFFFFFFF" />
        <SolidColorBrush x:Key="BorderInnerBrush" Color="#FF979994" />
        <telerik:Windows7Theme x:Key="Theme" />
        <SolidColorBrush x:Key="BorderLineOuterColor" Color="#26000000" />
        <SolidColorBrush x:Key="BorderLineInnerColor" Color="#FFFFFFFF" />
        <SolidColorBrush x:Key="RadAlert_OuterStrokeBrush" Color="#34000000" />
        <RadialGradientBrush x:Key="RadAlert_InnerBackgroundBrush">
            <GradientStop Color="#FFFFF000" Offset="0.026" />
            <GradientStop Color="#FFFFDE00" Offset="1" />
        </RadialGradientBrush>
        <SolidColorBrush x:Key="RadAlert_InnerStrokeBrush" Color="#FFFFFFFF" />
        <SolidColorBrush x:Key="RadAlert_InnerMostStrokeBrush" Color="#1A000000" />
        <SolidColorBrush x:Key="RadAlert_ExclamationMarkBackgroundBrush" Color="#FF000000" />
     
     
     
        <telerik:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
     
        <!-- WindowHeaderButtonStyle -->
        <Style x:Key="WindowHeaderButtonStyle" TargetType="telerik:RadButton">
            <Setter Property="IsEnabled" Value="true" />
            <Setter Property="IsTabStop" Value="false" />
            <Setter Property="MinWidth" Value="5" />
            <Setter Property="MinHeight" Value="5" />
            <Setter Property="Margin" Value="0" />
            <Setter Property="HorizontalContentAlignment" Value="Center" />
            <Setter Property="VerticalContentAlignment" Value="Center" />
            <Setter Property="Cursor" Value="Arrow" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerik:RadButton">
                        <Grid>
     
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="FocusStates">
                                    <VisualState x:Name="Unfocused" />
                                    <VisualState x:Name="Focused">
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Duration="0"
                                                    Storyboard.TargetName="OuterBorder"
                                                    Storyboard.TargetProperty="Background">
                                                <DiscreteObjectKeyFrame KeyTime="0"
                                                        Value="{StaticResource HeaderButton_OverBackgroundBrush}" />
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Duration="0"
                                                    Storyboard.TargetName="ShadowOver"
                                                    Storyboard.TargetProperty="(UIElement.Visibility)">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Duration="0"
                                                    Storyboard.TargetName="OuterBorder"
                                                    Storyboard.TargetProperty="Background">
                                                <DiscreteObjectKeyFrame KeyTime="0"
                                                        Value="{StaticResource HeaderButton_PressedBackgroundBrush}" />
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Duration="0"
                                                    Storyboard.TargetName="ShadowOver"
                                                    Storyboard.TargetProperty="(UIElement.Visibility)">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Disabled">
                                    </VisualState>
                                    <VisualState x:Name="Normal">
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
     
                            <Border BorderBrush="{StaticResource ButtonArea_OuterBorderBrush}"
                                    Width="25" HorizontalAlignment="Left" BorderThickness="0 0 1 0">
                                <Border x:Name="OuterBorder"
                                        Background="{StaticResource HeaderButton_NormalBackgroundBrush}">
                                    <Border BorderBrush="#99FFFFFF" BorderThickness="1" />
                                </Border>
                            </Border>
                            <ContentPresenter Content="{TemplateBinding Content}"
                                    ContentTemplate="{TemplateBinding ContentTemplate}" />
     
                            <StackPanel Visibility="Collapsed" x:Name="ShadowOver"
                                    IsHitTestVisible="False" Width="34.175" Height="36.089"
                                    Margin="-22 -5 -20 -15">
                                <StackPanel IsHitTestVisible="False">
                                    <Rectangle IsHitTestVisible="False"
                                            Stroke="{StaticResource HeaderButton_ShadowStrokeBrush}"
                                            OpacityMask="{StaticResource HeaderButton_ShadowOpacityMaskBrush}"
                                            StrokeThickness="10" HorizontalAlignment="Left" Margin="0"
                                            VerticalAlignment="Top" Width="34.175" Height="25.915"
                                            RadiusX="5" RadiusY="5" />
                                    <Rectangle IsHitTestVisible="False"
                                            Stroke="{StaticResource HeaderButton_ShadowStroke2Brush}"
                                            StrokeThickness="10" HorizontalAlignment="Left"
                                            Margin="9 -33 -8 0" VerticalAlignment="Top" Width="16.163"
                                            Height="36.415" RenderTransformOrigin="0.5,0.5">
                                        <Rectangle.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="0.99246469169824569"
                                                        ScaleY="1.0075925202828731" />
                                                <SkewTransform AngleX="0" AngleY="0" />
                                                <RotateTransform Angle="90" />
                                                <TranslateTransform X="0" Y="0" />
                                            </TransformGroup>
                                        </Rectangle.RenderTransform>
                                    </Rectangle>
                                </StackPanel>
     
                            </StackPanel>
                        </Grid>
     
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
     
        <!-- CloseButtonStyle -->
        <Style x:Key="CloseButtonStyle" TargetType="telerik:RadButton">
            <Setter Property="IsEnabled" Value="true" />
            <Setter Property="IsTabStop" Value="false" />
            <Setter Property="MinWidth" Value="5" />
            <Setter Property="MinHeight" Value="5" />
            <Setter Property="Margin" Value="0" />
            <Setter Property="HorizontalContentAlignment" Value="Center" />
            <Setter Property="VerticalContentAlignment" Value="Center" />
            <Setter Property="Cursor" Value="Arrow" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerik:RadButton">
                        <Grid>
     
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="FocusStates">
                                    <VisualState x:Name="Unfocused">
                                    </VisualState>
                                    <VisualState x:Name="Focused">
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Duration="0"
                                                    Storyboard.TargetName="OuterBorder"
                                                    Storyboard.TargetProperty="Background">
                                                <DiscreteObjectKeyFrame KeyTime="0"
                                                        Value="{StaticResource CloseButton_OverBackgroundBrush}" />
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Duration="0"
                                                    Storyboard.TargetName="ShadowOver"
                                                    Storyboard.TargetProperty="(UIElement.Visibility)">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Duration="0"
                                                    Storyboard.TargetName="OuterBorder"
                                                    Storyboard.TargetProperty="Background">
                                                <DiscreteObjectKeyFrame KeyTime="0"
                                                        Value="{StaticResource CloseButton_PressedBackgroundBrush}" />
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Disabled">
                                    </VisualState>
                                    <VisualState x:Name="Normal">
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
     
                            <Border x:Name="OuterBorder" HorizontalAlignment="Left" Width="39"
                                    Background="{StaticResource CloseButton_NormalBackgroundBrush}"
                                    CornerRadius="0,0,3,0">
                                <Border CornerRadius="0,0,3,0" BorderBrush="#99FFFFFF"
                                        BorderThickness="1" />
                            </Border>
     
                            <ContentPresenter Content="{TemplateBinding Content}"
                                    ContentTemplate="{TemplateBinding ContentTemplate}" />
     
                            <!--mouse HeaderButton_OverBackgroundBrush-->
     
                            <StackPanel Visibility="Collapsed" x:Name="ShadowOver"
                                    IsHitTestVisible="False" Width="53.57" Height="41.695"
                                    Margin="-20 -4 -15 -15">
                                <Rectangle Stroke="{StaticResource CloseButton_ShadowStrokeBrush}"
                                        OpacityMask="{StaticResource CloseButton_ShadowOpacityMaskBrush}"
                                        RadiusX="4" RadiusY="4" StrokeThickness="10"
                                        HorizontalAlignment="Left" Margin="0" VerticalAlignment="Top"
                                        Width="53.57" Height="25.915" />
                                <Rectangle Stroke="{StaticResource CloseButton_ShadowStroke2Brush}"
                                        StrokeThickness="10" HorizontalAlignment="Left"
                                        Margin="15 -34 0 0" VerticalAlignment="Top" Width="24.046"
                                        Height="41.695" RenderTransformOrigin="0.5,0.5">
                                    <Rectangle.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform ScaleX="0.66713942516425861"
                                                    ScaleY="1.4989370471603993" />
                                            <SkewTransform AngleX="0" AngleY="0" />
                                            <RotateTransform Angle="90" />
                                            <TranslateTransform X="0" Y="0" />
                                        </TransformGroup>
                                    </Rectangle.RenderTransform>
                                </Rectangle>
                            </StackPanel>
                        </Grid>
     
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
     
        <!-- RadWindow_ControlTemplate -->
        <ControlTemplate x:Key="RadWindow_ControlTemplate" TargetType="telerikNavigation:RadWindow">
            <Grid x:Name="LayoutRoot">
     
                <VisualStateManager.VisualStateGroups>
                    <VisualStateGroup x:Name="CommonStates">
                        <VisualState x:Name="Normal" />
                        <VisualState x:Name="Disabled" />
                    </VisualStateGroup>
                    <VisualStateGroup x:Name="FocusStates">
                        <VisualState x:Name="Focused" />
                        <VisualState x:Name="Unfocused" />
                    </VisualStateGroup>
                    <VisualStateGroup x:Name="ResizeStates">
                        <VisualState x:Name="NotDragging" />
                        <VisualState x:Name="Dragging" />
                        <VisualState x:Name="Resizing" />
                    </VisualStateGroup>
                    <VisualStateGroup x:Name="WindowStates">
                        <VisualState x:Name="NormalWindow" />
                        <VisualState x:Name="Maximized" />
                        <VisualState x:Name="Minimized">
                            <Storyboard>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentHost" Storyboard.TargetProperty="Visibility">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <Visibility>Collapsed</Visibility>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="HorizontalAlignment">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <HorizontalAlignment>Left</HorizontalAlignment>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                                <ObjectAnimationUsingKeyFrames Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="VerticalAlignment">
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <VerticalAlignment>Top</VerticalAlignment>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames>
                            </Storyboard>
                        </VisualState>
                    </VisualStateGroup>
                </VisualStateManager.VisualStateGroups>
     
     
                <Grid x:Name="Shadow">
                    <Rectangle Margin="-7" Stroke="{StaticResource BorderShadowColor1}"
                            IsHitTestVisible="False" StrokeThickness="1" RadiusX="11" RadiusY="11" />
     
                    <Rectangle Margin="-5" Stroke="{StaticResource BorderShadowColor2}"
                            IsHitTestVisible="False" StrokeThickness="1" RadiusX="10" RadiusY="10" />
     
                    <Rectangle Margin="-4" Stroke="{StaticResource BorderShadowColor3}"
                            IsHitTestVisible="False" StrokeThickness="1" RadiusX="9" RadiusY="9" />
     
                    <Rectangle Margin="-3" Stroke="{StaticResource BorderShadowColor4}"
                            IsHitTestVisible="False" StrokeThickness="1" RadiusX="8" RadiusY="8" />
                </Grid>
     
                <Rectangle Margin="-2" Stroke="{StaticResource RadWindow_OuterOuterBorder}"
                        IsHitTestVisible="False" StrokeThickness="1" RadiusX="7" RadiusY="7" />
     
                <Border Margin="-1" x:Name="OuterBorder" RenderTransformOrigin="0.5,0.5"
                        IsHitTestVisible="False" BorderThickness="1" CornerRadius="6"
                        BorderBrush="{StaticResource RadWindow_OuterBorder}">
                    <Border x:Name="MainBorder" CornerRadius="6"
                            Background="{TemplateBinding BorderBackground}"
                            BorderBrush="{TemplateBinding BorderBrush}">
                    </Border>
                </Border>
     
                <Grid x:Name="resizeGrid" Margin="-1">
                    <Thumb x:Name="W" Cursor="SizeWE" Width="7" HorizontalAlignment="Left" Opacity="0" />
                    <Thumb x:Name="NW" Visibility="Visible" Height="7" Width="15"
                            VerticalAlignment="Top" HorizontalAlignment="Left" Opacity="0"
                            Canvas.ZIndex="10" Cursor="SizeNWSE" />
                    <Thumb x:Name="N" Visibility="Visible" Cursor="SizeNS" Height="7"
                            VerticalAlignment="Top" Opacity="0" />
                    <Thumb x:Name="NE" Visibility="Visible" Height="7" Width="15"
                            VerticalAlignment="Top" HorizontalAlignment="Right" Opacity="0"
                            Canvas.ZIndex="10" Cursor="SizeNESW" />
                    <Thumb x:Name="E" Cursor="SizeWE" Width="7" HorizontalAlignment="Right" Opacity="0" />
                    <Thumb x:Name="SE" Height="7" Width="7" VerticalAlignment="Bottom"
                            HorizontalAlignment="Right" Opacity="0" Canvas.ZIndex="10"
                            Cursor="SizeNWSE" />
                    <Thumb x:Name="S" Cursor="SizeNS" Height="7" VerticalAlignment="Bottom" Opacity="0" />
                    <Thumb x:Name="SW" Height="7" Width="7" VerticalAlignment="Bottom"
                            HorizontalAlignment="Left" Opacity="0" Canvas.ZIndex="10" Cursor="SizeNESW" />
                </Grid>
     
                <Grid x:Name="Header" Height="20" VerticalAlignment="Top" HorizontalAlignment="Stretch"
                        Margin="0 5 6 0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="auto" />
                    </Grid.ColumnDefinitions>
     
                    <Thumb x:Name="titleThumb" Opacity="0" Grid.ColumnSpan="2" Grid.Column="0" />
     
                    <!-- First part of the header (without the buttons) -->
                    <StackPanel HorizontalAlignment="Left" Orientation="Horizontal" Grid.Column="0"
                            Margin="0,-5,0,0">
                        <!-- The Icon -->
                        <ContentControl ContentTemplate="{TemplateBinding IconTemplate}"
                                IsTabStop="False" Content="{TemplateBinding Icon}" Margin="4 2 4 1"
                                Grid.Column="0" />
     
                        <!-- The Title presenter -->
                        <Grid x:Name="TitlePresenter"
                                IsHitTestVisible="{TemplateBinding IsHeaderHitTestVisible}">
                            <Border CornerRadius="4" Grid.Column="1" Margin="-6 0 -10 -2">
                                <Border.OpacityMask>
                                    <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                                        <GradientStop Color="#FF000000" Offset="0.15" />
                                        <GradientStop Color="#00000000" Offset="0.996" />
                                        <GradientStop Color="#FF000000" Offset="0.85" />
                                        <GradientStop Color="#00000000" Offset="0" />
                                    </LinearGradientBrush>
                                </Border.OpacityMask>
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"
                                            MappingMode="RelativeToBoundingBox">
                                        <GradientStop Color="#CCFFFFFF" Offset="0.4" />
                                        <GradientStop Color="#00FFFFFF" Offset="1" />
                                        <GradientStop Color="#00FFFFFF" Offset="0" />
                                        <GradientStop Color="#CCFFFFFF" Offset="0.6" />
                                    </LinearGradientBrush>
                                </Border.Background>
                            </Border>
     
                            <ContentPresenter Grid.Column="1" Content="{TemplateBinding Header}"
                                    VerticalAlignment="Center" Margin="4 0 0 0"
                                    ContentTemplate="{TemplateBinding HeaderTemplate}"                             
                                     />
     
                        </Grid>
                    </StackPanel>
     
                    <!-- Window buttons -->
                    <Grid Grid.Column="1" VerticalAlignment="Top" Margin="0,-5,0,0">
                        <StackPanel Margin="5 0 0 0" HorizontalAlignment="Left"
                                VerticalAlignment="Top" Width="Auto" Orientation="Horizontal">
                            <telerik:RadButton x:Name="PART_MinimizeButton"
                                    Style="{StaticResource WindowHeaderButtonStyle}" Height="16"
                                    Margin="0" VerticalAlignment="Top"
                                    Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}"
                                    Command="telerik:WindowCommands.Minimize">
                                <Rectangle Stroke="{StaticResource HeaderButton_StrokeBrush}"
                                        Fill="{StaticResource HeaderButton_FillBrush}" RadiusX="1"
                                        RadiusY="1" HorizontalAlignment="Center" Margin="-1 8.5 0 3.5"
                                        Width="12" />
                            </telerik:RadButton>
     
                            <telerik:RadButton x:Name="PART_RestoreButton"
                                    Style="{StaticResource WindowHeaderButtonStyle}" Height="16"
                                    VerticalAlignment="Top" HorizontalAlignment="Right"
                                    Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}"
                                    Command="telerik:WindowCommands.Restore">
     
                                <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                                        x:Name="restore">
                                    <Path Stretch="Fill" HorizontalAlignment="Left" Margin="8.5,3,0,0"
                                            VerticalAlignment="Top"
                                            Stroke="{StaticResource HeaderButton_StrokeBrush}"
                                            Fill="{StaticResource HeaderButton_FillBrush}" Width="9"
                                            Height="8"
                                            Data="M1.5,0.5 L10.5,0.5 C11.052284,0.5 11.5,0.94771537 11.5,1.5 L11.5,8.5 C11.5,9.0522842 11.052284,9.5 10.5,9.5 L1.5,9.5 C0.94771519,9.5 0.5,9.0522841 0.5,8.5 L0.5,1.5 C0.5,0.94771546 0.9477151,0.5 1.5,0.5 z" />
     
                                    <Path Stretch="Fill"
                                            Stroke="{StaticResource HeaderButton_StrokeBrush}"
                                            Fill="{StaticResource HeaderButton_FillBrush}"
                                            Margin="6.5,5,0,0" HorizontalAlignment="Left"
                                            VerticalAlignment="Top" Width="9" Height="9"
                                            Data="M3.5443635,6.4780002 L8.4556365,6.4780002 8.4556365,3.52 3.5443635,3.52 z M1.5,0.5 L10.5,0.5 C11.052284,0.5 11.5,0.94771537 11.5,1.5 L11.5,8.5 C11.5,9.0522842 11.052284,9.5 10.5,9.5 L1.5,9.5 C0.94771519,9.5 0.5,9.0522841 0.5,8.5 L0.5,1.5 C0.5,0.94771546 0.9477151,0.5 1.5,0.5 z" />
                                </Grid>
                            </telerik:RadButton>
     
                            <telerik:RadButton x:Name="PART_MaximizeButton"
                                    Style="{StaticResource WindowHeaderButtonStyle}" Height="16"
                                    VerticalAlignment="Top" HorizontalAlignment="Right"
                                    Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}"
                                    Command="telerik:WindowCommands.Maximize">
     
                                <Grid x:Name="maximize" HorizontalAlignment="Center"
                                        VerticalAlignment="Top" Margin="0 3" Width="12">
                                    <Path Stretch="Fill"
                                            Stroke="{StaticResource HeaderButton_StrokeBrush}"
                                            Fill="{StaticResource HeaderButton_FillBrush}"
                                            HorizontalAlignment="Center" VerticalAlignment="Center"
                                            Margin="0" Width="12"
                                            Data="M2.625,3.52 L2.625,6.4780002 9.375,6.4780002 9.375,3.52 2.625,3.52 z M1.5,0.5 L10.5,0.5 C11.052284,0.5 11.5,0.94771537 11.5,1.5 L11.5,8.5 C11.5,9.0522842 11.052284,9.5 10.5,9.5 L1.5,9.5 C0.94771519,9.5 0.5,9.0522841 0.5,8.5 L0.5,1.5 C0.5,0.94771546 0.9477151,0.5 1.5,0.5 z" />
                                </Grid>
                            </telerik:RadButton>
     
                            <telerik:RadButton x:Name="PART_CloseButton" Style="{StaticResource CloseButtonStyle}"
                                    Height="16" HorizontalAlignment="Right" Margin="0"
                                    VerticalAlignment="Top" HorizontalContentAlignment="Left"
                                    Visibility="{Binding IsEnabled, RelativeSource={RelativeSource Self}, Converter={StaticResource BooleanToVisibilityConverter}}"
                                    VerticalContentAlignment="Top"
                                    Command="telerik:WindowCommands.Close">
     
                                <Grid Width="11" HorizontalAlignment="Center" VerticalAlignment="Top"
                                        Margin="0,3,0,3">
                                    <Path Stretch="Fill"
                                            Stroke="{StaticResource HeaderButton_StrokeBrush}"
                                            Fill="{StaticResource HeaderButton_FillBrush}"
                                            HorizontalAlignment="Right" Width="11"
                                            Data="M1.7378059,0.5 L2.6141474,0.5 C3.1662261,0.50000006 3.8039908,0.75809938 4.4048114,1.5 4.5550169,1.685475 4.9485269,2.160322 5.4658298,2.7821105 L5.4860015,2.8063081 5.5061731,2.7821105 C6.0234754,2.1603227 6.4169869,1.6854752 6.5671916,1.5 7.1680121,0.75809938 7.805777,0.50000006 8.3578553,0.5 L9.2341971,0.5 C9.7862759,0.50000006 10.979304,0.58072393 10.233824,1.5 9.8610825,1.9596381 8.6079334,3.4697623 7.345519,4.9849148 L7.3238601,5.0108548 9.0990157,7.1366935 C9.6334218,7.7765244 10.052589,8.2784384 10.237003,8.5 10.974663,9.3862554 9.7894541,9.5 9.2373757,9.5 L8.3610196,9.5 C7.8089409,9.5 7.3899587,9.4595025 6.5703706,8.5 6.4679222,8.3800621 6.3116059,8.195097 6.1150331,7.9614411 L5.4860015,7.2116037 4.8569698,7.9614411 C4.6603975,8.195097 4.5040812,8.3800621 4.4016328,8.5 3.5820441,9.4595032 3.1630621,9.5 2.6109833,9.5 L1.7346272,9.5 C1.1825502,9.5 -0.0026579946,9.3862555 0.73499992,8.5 0.91941352,8.2784385 1.338581,7.7765249 1.8729872,7.1366935 L3.6481428,5.0108552 3.6264839,4.9849148 C2.36407,3.4697629 1.1109188,1.9596384 0.73817882,1.5 -0.0073020967,0.58072303 1.1857272,0.50000006 1.7378059,0.5 z" />
                                </Grid>
                            </telerik:RadButton>
                        </StackPanel>
     
                        <Border x:Name="PART_HeaderButtonsBorder"
                                BorderBrush="{StaticResource ButtonArea_InnerBorderBrush}"
                                Margin="3 0 0 0" BorderThickness="1,0,1,1" CornerRadius="0,0,5,5">
                            <Border BorderBrush="{StaticResource ButtonArea_OuterBorderBrush}"
                                    BorderThickness="1,0,1,1" CornerRadius="0,0,4,4" />
                        </Border>
     
                    </Grid>
                </Grid>
     
                <Grid x:Name="ContentHost" Margin="{TemplateBinding BorderThickness}">
                    <Border Background="{TemplateBinding Background}" x:Name="innerShape"
                            BorderThickness="1" CornerRadius="2" Margin="0 20 0 0"
                            BorderBrush="{StaticResource RadWindow_InnerBorder}">
                        <Border BorderBrush="{StaticResource RadWindow_InnerMostBorder}"
                                BorderThickness="1" CornerRadius="1">
                            <ContentPresenter x:Name="ContentElement"
                                    Content="{TemplateBinding Content}"
                                    ContentTemplate="{TemplateBinding ContentTemplate}"
                                    Margin="{TemplateBinding Padding}" />
                        </Border>
                    </Border>
                </Grid>
     
            </Grid>
     
        </ControlTemplate>
     
        <!-- telerikNavigation:RadWindow -->
        <Style         TargetType="telerikNavigation:RadWindow">
            <Setter Property="IsTabStop" Value="false" />
            <Setter Property="Template" Value="{StaticResource RadWindow_ControlTemplate}" />
            <Setter Property="Background" Value="{StaticResource RadWindow_InnerBackground}" />
            <Setter Property="BorderBackground" Value="{StaticResource RadWindow_OuterBackground}" />
            <Setter Property="BorderThickness" Value="4" />
            <Setter Property="BorderBrush" Value="{StaticResource WindowBorderBrush}" />
            <Setter Property="ModalBackground" Value="{StaticResource ModalBackgroundBrush}" />
            <Setter Property="MinHeight" Value="30" />
            <Setter Property="MinWidth" Value="100" />
            <Setter Property="Padding" Value="0" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="VerticalAlignment" Value="Top" />
            <Setter Property="HorizontalContentAlignment" Value="Stretch" />
            <Setter Property="VerticalContentAlignment" Value="Stretch" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="VerticalAlignment" Value="Top" />
            <Setter Property="WindowState" Value="Normal" />
            <Setter Property="WindowStartupLocation" Value="CenterOwner" />
            <Setter Property="Header" Value="RadWindow" />
            <Setter Property="Margin" Value="0" />
     
            <Setter Property="TabNavigation" Value="Cycle" />
     
            <Setter Property="animation:AnimationManager.AnimationSelector" Value="{x:Null}" />
            <!--<Setter Property="animation:AnimationManager.AnimationSelector">
                <Setter.Value>
                    <animation:AnimationSelector>
                        <animation:AnimationGroup AnimationName="Show">
                            <animation:FadeAnimation Direction="In" TargetElementName="LayoutRoot" >
     
                                <animation:FadeAnimation.Easing>
                                    <QuarticEase EasingMode="EaseOut" />
                                </animation:FadeAnimation.Easing>
     
                            </animation:FadeAnimation>
                            <animation:ScaleAnimation Direction="In" TargetElementName="LayoutRoot" MinScale="0.95" >
     
                                <animation:ScaleAnimation.Easing>
                                    <QuarticEase EasingMode="EaseOut" />
                                </animation:ScaleAnimation.Easing>
     
                            </animation:ScaleAnimation>
                        </animation:AnimationGroup>
                        <animation:AnimationGroup AnimationName="Hide">
                            <animation:FadeAnimation Direction="Out" TargetElementName="LayoutRoot" >
     
                                <animation:FadeAnimation.Easing>
                                    <QuarticEase EasingMode="EaseOut" />
                                </animation:FadeAnimation.Easing>
     
                            </animation:FadeAnimation>
                            <animation:ScaleAnimation Direction="Out" TargetElementName="LayoutRoot" MinScale="0.95" >
     
                                <animation:ScaleAnimation.Easing>
                                    <QuarticEase EasingMode="EaseOut" />
                                </animation:ScaleAnimation.Easing>
     
                            </animation:ScaleAnimation>
                        </animation:AnimationGroup>
                    </animation:AnimationSelector>
                </Setter.Value>
            </Setter>-->
        </Style>
     
        <!-- telerikNavigation:RadPrompt -->
        <Style  TargetType="telerikNavigation:RadPrompt">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerikNavigation:RadPrompt">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="auto" />
                                <RowDefinition Height="2" />
                                <RowDefinition Height="36" />
                            </Grid.RowDefinitions>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="auto" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Grid Width="42" Height="42" VerticalAlignment="Top" Margin="10">
                                    <Path Stretch="Fill" StrokeThickness="4" StrokeMiterLimit="2.75"
                                            Stroke="{StaticResource RadConfirm_OuterStrokeBrush}"
                                            Data="F1 M 10224,10026.7C 10224,10048.8 10206.1,10066.7 10184,10066.7C 10161.9,10066.7 10144,10048.8 10144,10026.7C 10144,10004.6 10161.9,9986.67 10184,9986.67C 10206.1,9986.67 10224,10004.6 10224,10026.7 Z "
                                            Margin="0,1,0,-1" />
                                    <Path Stretch="Fill"
                                            Fill="{StaticResource RadConfirm_InnerBackgroundBrush}"
                                            Data="F1 M 10144,10026.7C 10144,10048.8 10161.9,10066.7 10184,10066.7L 10184,10066.7C 10206.1,10066.7 10224,10048.8 10224,10026.7L 10224,10026.7C 10224,10004.6 10206.1,9986.67 10184,9986.67L 10184,9986.67C 10161.9,9986.67 10144,10004.6 10144,10026.7 Z "
                                            Margin="3.3,3.34,3.368,3.326" />
                                    <Path Stretch="Fill" StrokeThickness="4" StrokeMiterLimit="2.75"
                                            Stroke="{StaticResource RadConfirm_InnerStrokeBrush}"
                                            Data="F1 M 10224,10026.7C 10224,10048.8 10206.1,10066.7 10184,10066.7C 10161.9,10066.7 10144,10048.8 10144,10026.7C 10144,10004.6 10161.9,9986.67 10184,9986.67C 10206.1,9986.67 10224,10004.6 10224,10026.7 Z " />
                                    <Path Stretch="Fill"
                                            Fill="{StaticResource RadConfirm_QuestionMarkBackgroundBrush}"
                                            Data="F1 M 10178,10044.1C 10178,10041.5 10179.7,10039.7 10182,10039.7C 10184.5,10039.7 10186.1,10041.5 10186.1,10044.1C 10186.1,10046.5 10184.5,10048.3 10182,10048.3C 10179.6,10048.3 10178,10046.5 10178,10044.1 Z M 10179.4,10034.4L 10179.3,10032.6C 10178.9,10028.9 10180.1,10024.8 10183.5,10020.7C 10186.6,10017 10188.4,10014.4 10188.4,10011.3C 10188.4,10007.7 10186.2,10005.4 10181.8,10005.3C 10179.3,10005.3 10176.6,10006.2 10174.9,10007.5L 10173.2,10003.1C 10175.6,10001.5 10179.4,10000.4 10183.1,10000.4C 10191,10000.4 10194.6,10005.3 10194.6,10010.5C 10194.6,10015.2 10191.9,10018.6 10188.6,10022.5C 10185.6,10026.1 10184.5,10029.1 10184.7,10032.7L 10184.9,10034.4L 10179.4,10034.4 Z "
                                            Margin="15.365,8.76,15.377,8.759" />
                                </Grid>
                                <StackPanel Grid.Column="1" VerticalAlignment="Top" Margin="0 10 10 0">
                                    <ContentControl x:Name="PromptText"
                                            Content="{TemplateBinding Content}" IsTabStop="False" />
                                    <Border Grid.Column="0"
                                            BorderBrush="{StaticResource BorderOuterBrush}"
                                            x:Name="OuterBorder" BorderThickness="1" CornerRadius="3">
                                        <Border BorderThickness="1" CornerRadius="2"
                                                Background="{StaticResource InputTextBoxBackground}"
                                                BorderBrush="{StaticResource BorderInnerBrush}"
                                                x:Name="InnerBorder">
                                            <telerik:PickerTextBox x:Name="PromptTextBox"
                                                    TextWrapping="Wrap"
                                                    telerik:StyleManager.Theme="{StaticResource Theme}" />
                                        </Border>
                                    </Border>
                                </StackPanel>
                            </Grid>
     
                            <Border Height="2" Background="{StaticResource BorderLineOuterColor}"
                                    Grid.Row="1" BorderBrush="{StaticResource BorderLineInnerColor}"
                                    BorderThickness="0 0 0 1" />
     
                            <StackPanel Grid.Row="2" Orientation="Horizontal"
                                    HorizontalAlignment="Right">
                                <Button Grid.Column="0" HorizontalAlignment="Center" Margin="5,5,5,5"
                                        telerik:LocalizationManager.ResourceKey="Ok" Name="OK"
                                        telerik:StyleManager.Theme="{StaticResource Theme}" Height="25"
                                        MinWidth="60"
                                         
                                    />
                                <Button Grid.Column="2" HorizontalAlignment="Center" Margin="0,5,5,5"
                                        telerik:LocalizationManager.ResourceKey="Cancel" x:Name="Cancel"
                                        telerik:StyleManager.Theme="{StaticResource Theme}" Height="25"
                                        MinWidth="70"
                                         
                                        />
                            </StackPanel>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="IsTabStop" Value="false" />
        </Style>
     
        <!-- telerikNavigation:RadConfirm -->
        <Style  TargetType="telerikNavigation:RadConfirm">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerikNavigation:RadConfirm">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="auto" />
                                <RowDefinition Height="2" />
                                <RowDefinition Height="36" />
                            </Grid.RowDefinitions>
                            <Grid Grid.Row="0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="auto" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Grid Width="42" Height="42" VerticalAlignment="Top"
                                        HorizontalAlignment="Left" Margin="10,10,12,12">
                                    <Path Stretch="Fill" StrokeThickness="4" StrokeMiterLimit="2.75"
                                            Stroke="{StaticResource RadConfirm_OuterStrokeBrush}"
                                            Data="F1 M 10224,10026.7C 10224,10048.8 10206.1,10066.7 10184,10066.7C 10161.9,10066.7 10144,10048.8 10144,10026.7C 10144,10004.6 10161.9,9986.67 10184,9986.67C 10206.1,9986.67 10224,10004.6 10224,10026.7 Z "
                                            Margin="0,1,0,-1" />
                                    <Path Stretch="Fill"
                                            Fill="{StaticResource RadConfirm_InnerBackgroundBrush}"
                                            Data="F1 M 10144,10026.7C 10144,10048.8 10161.9,10066.7 10184,10066.7L 10184,10066.7C 10206.1,10066.7 10224,10048.8 10224,10026.7L 10224,10026.7C 10224,10004.6 10206.1,9986.67 10184,9986.67L 10184,9986.67C 10161.9,9986.67 10144,10004.6 10144,10026.7 Z "
                                            Margin="3.3,3.34,3.368,3.326" />
                                    <Path Stretch="Fill" StrokeThickness="4" StrokeMiterLimit="2.75"
                                            Stroke="{StaticResource RadConfirm_InnerStrokeBrush}"
                                            Data="F1 M 10224,10026.7C 10224,10048.8 10206.1,10066.7 10184,10066.7C 10161.9,10066.7 10144,10048.8 10144,10026.7C 10144,10004.6 10161.9,9986.67 10184,9986.67C 10206.1,9986.67 10224,10004.6 10224,10026.7 Z " />
                                    <Path Stretch="Fill"
                                            Fill="{StaticResource RadConfirm_QuestionMarkBackgroundBrush}"
                                            Data="F1 M 10178,10044.1C 10178,10041.5 10179.7,10039.7 10182,10039.7C 10184.5,10039.7 10186.1,10041.5 10186.1,10044.1C 10186.1,10046.5 10184.5,10048.3 10182,10048.3C 10179.6,10048.3 10178,10046.5 10178,10044.1 Z M 10179.4,10034.4L 10179.3,10032.6C 10178.9,10028.9 10180.1,10024.8 10183.5,10020.7C 10186.6,10017 10188.4,10014.4 10188.4,10011.3C 10188.4,10007.7 10186.2,10005.4 10181.8,10005.3C 10179.3,10005.3 10176.6,10006.2 10174.9,10007.5L 10173.2,10003.1C 10175.6,10001.5 10179.4,10000.4 10183.1,10000.4C 10191,10000.4 10194.6,10005.3 10194.6,10010.5C 10194.6,10015.2 10191.9,10018.6 10188.6,10022.5C 10185.6,10026.1 10184.5,10029.1 10184.7,10032.7L 10184.9,10034.4L 10179.4,10034.4 Z "
                                            Margin="15.365,8.76,15.377,8.759" />
                                </Grid>
     
                                <ContentPresenter Margin="0,10,10,10" x:Name="ConfirmText"
                                        Grid.Column="1" Content="{TemplateBinding Content}" />
                            </Grid>
     
                            <Border Height="2" BorderThickness="0 0 0 1"
                                    Background="{StaticResource BorderLineOuterColor}" Grid.Row="1"
                                    BorderBrush="{StaticResource BorderLineInnerColor}" />
     
                            <StackPanel HorizontalAlignment="Right" Grid.Row="2"
                                    Orientation="Horizontal">
                                <Button Margin="5,5,5,5" telerik:LocalizationManager.ResourceKey="Ok" Name="OK"
                                        telerik:StyleManager.Theme="{StaticResource Theme}" Height="25"
                                        MinWidth="60"
                                         
                                    />
                                <Button Margin="0,5,5,5" telerik:LocalizationManager.ResourceKey="Cancel" x:Name="Cancel"
                                        telerik:StyleManager.Theme="{StaticResource Theme}" Height="25"
                                        MinWidth="80"
                                         
                                        />
                            </StackPanel>
                        </Grid>
                    </ControlTemplate>
     
                </Setter.Value>
            </Setter>
            <Setter Property="IsTabStop" Value="false" />
        </Style>
     
        <!-- telerikNavigation:RadAlert -->
        <Style   TargetType="telerikNavigation:RadAlert">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerikNavigation:RadAlert">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="auto" />
                                <RowDefinition Height="2" />
                                <RowDefinition Height="36" />
                            </Grid.RowDefinitions>
                            <Grid Grid.Row="0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="auto" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Grid Width="42" Height="42" VerticalAlignment="Top"
                                        HorizontalAlignment="Left" Margin="10,10,12,12">
                                    <Path Stretch="Fill" StrokeThickness="5" StrokeLineJoin="Round"
                                            Stroke="{StaticResource RadAlert_OuterStrokeBrush}"
                                            Data="F1 M 30.2128,2.5L 2.5,50.5L 57.9256,50.5L 30.2128,2.5 Z "
                                            Margin="0,0,0,1" HorizontalAlignment="Center"
                                            VerticalAlignment="Center" />
                                    <Path Stretch="Fill" StrokeThickness="4" StrokeLineJoin="Round"
                                            Fill="{StaticResource RadAlert_InnerBackgroundBrush}"
                                            Stroke="{StaticResource RadAlert_InnerStrokeBrush}"
                                            Data="F1 M 30.2128,2.5L 2.5,50.5L 57.9256,50.5L 30.2128,2.5 Z "
                                            Margin="0.5,0.5,0.5,1.5" HorizontalAlignment="Center"
                                            VerticalAlignment="Center" />
                                    <Path Stretch="Fill" StrokeLineJoin="Round"
                                            Stroke="{StaticResource RadAlert_InnerMostStrokeBrush}"
                                            Data="F1 M 30.2128,5.52939L 5.99807,48.6372L 54.4276,48.6372L 30.2128,5.52939 Z "
                                            Margin="5.498,5.029,5.498,4.863"
                                            HorizontalAlignment="Center" VerticalAlignment="Center" />
                                    <Path Stretch="Fill"
                                            Fill="{StaticResource RadAlert_ExclamationMarkBackgroundBrush}"
                                            Data="F1 M 30.6528,34.7639L 30.0128,34.7639C 29.9395,33.5806 29.7028,32.1489 29.3028,30.4689L 28.4978,27.0789C 28.0145,25.0456 27.7728,23.5872 27.7728,22.7039C 27.7728,21.9072 28.0086,21.2647 28.4803,20.7764C 28.952,20.2881 29.5661,20.0439 30.3228,20.0439C 31.0628,20.0439 31.6761,20.2906 32.1628,20.7839C 32.6495,21.2772 32.8928,21.9022 32.8928,22.6589C 32.8928,23.4456 32.6328,24.9189 32.1128,27.0789L 31.2928,30.4689C 30.9995,31.6722 30.7861,33.1039 30.6528,34.7639 Z M 30.3328,37.0039C 31.0395,37.0039 31.6428,37.2531 32.1428,37.7514C 32.6428,38.2497 32.8928,38.8572 32.8928,39.5739C 32.8928,40.2772 32.6428,40.8781 32.1428,41.3764C 31.6428,41.8747 31.0395,42.1239 30.3328,42.1239C 29.6261,42.1239 29.0228,41.8747 28.5228,41.3764C 28.0228,40.8781 27.7728,40.2772 27.7728,39.5739C 27.7728,38.8672 28.0203,38.2622 28.5153,37.7589C 29.0103,37.2556 29.6161,37.0039 30.3328,37.0039 Z "
                                            Margin="17,15,17,8" />
                                </Grid>
                                <ContentControl Margin="0,10,10,0" x:Name="AlertText" Grid.Column="1"
                                        IsTabStop="False" Content="{TemplateBinding Content}" />
                            </Grid>
     
                            <Grid Height="2" Background="{StaticResource BorderLineOuterColor}"
                                    Grid.Row="1">
                                <Rectangle Fill="{StaticResource BorderLineInnerColor}"
                                        VerticalAlignment="Bottom" Height="1" />
                            </Grid>
     
                            <Button Grid.Row="2" HorizontalAlignment="Right" Margin="5,5,5,5"
                                    telerik:LocalizationManager.ResourceKey="Ok" Name="OK"
                                    telerik:StyleManager.Theme="{StaticResource Theme}" Height="25"
                                    MinWidth="60"
                                     
                                />
                        </Grid>
                    </ControlTemplate>
     
                </Setter.Value>
            </Setter>
            <Setter Property="IsTabStop" Value="false" />
        </Style>
     
    </ResourceDictionary>
  5. Pana
    Admin
    Pana avatar
    748 posts

    Posted 08 Sep 2011 Link to this post

    Hi,

    I am trying to reproduce the problem but it still opens the window immediately with no animation. Please could you check the attached project to confirm I have done the test correctly. It has a big button that opens a RadWindow on click. Sets the Owner and the CenterOwner startup position. The style is merged in the App.xaml and applies correctly since the window appears with Windows7 theme. If you could "brake" my project and send it back it would help a lot.

    I am really sorry for the inconvenience.
    We have some fixes for the RadWindow that would be released in the upcoming service pack.

    Regards,
    Pana
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top