<Style TargetType="local:TextRotatorBlind">
<Setter Property="Background" Value="#ffffff" />
<Setter Property="BorderBrush" Value="#a4a4a4" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="FontFamily" Value="Arial" />
<Setter Property="FontSize" Value="14" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:TextRotatorBlind">
<Canvas x:Name="RootElement" Background="{TemplateBinding Background}">
<Canvas.Resources>
<Storyboard x:Name="ElementOpen" BeginTime="0">
<DoubleAnimation Storyboard.TargetName="ElementTop" Storyboard.TargetProperty="(Canvas.Top)" />
<DoubleAnimation Storyboard.TargetName="ElementBottom" Storyboard.TargetProperty="(Canvas.Top)" />
</Storyboard>
<Storyboard x:Name="ElementClose" BeginTime="0">
<DoubleAnimation Storyboard.TargetName="ElementTop" Storyboard.TargetProperty="(Canvas.Top)" />
<DoubleAnimation Storyboard.TargetName="ElementBottom" Storyboard.TargetProperty="(Canvas.Top)" />
</Storyboard>
<Storyboard x:Name="ElementRotateOpen" BeginTime="0">
<DoubleAnimation Storyboard.TargetName="ElementTopProjection" From="0" To="90" />
<DoubleAnimation Storyboard.TargetName="ElementContentProjection" From="270" To="360" />
</Storyboard>
<Storyboard x:Name="ElementRotateClose" BeginTime="0">
<DoubleAnimation Storyboard.TargetName="ElementTopProjection" From="270" To="360" />
<DoubleAnimation Storyboard.TargetName="ElementContentProjection" From="0" To="90" />
</Storyboard>
</Canvas.Resources>
<Canvas.Clip>
<RectangleGeometry x:Name="ElementClipping" />
</Canvas.Clip>
<ContentPresenter x:Name="ElementContent">
<ContentPresenter.Projection>
<PlaneProjection x:Name="ElementContentProjection" />
</ContentPresenter.Projection>
</ContentPresenter>
<ContentPresenter x:Name="ElementTop">
<ContentPresenter.Projection>
<PlaneProjection x:Name="ElementTopProjection" />
</ContentPresenter.Projection>
<Grid>
<Grid.Background>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Color="#ffffffff" Offset="0.0" />
<GradientStop Color="#fff0f0f0" Offset="1.0" />
</LinearGradientBrush>
</Grid.Background>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock x:Name="ElementTopText" TextAlignment="Center" Text="" />
<TextBlock x:Name="ElementBottomText" TextAlignment="Center" Text="" />
</StackPanel>
<TextBlock x:Name="ElementBottomSelectedText" HorizontalAlignment="Center" VerticalAlignment="Bottom" TextAlignment="Center" FontWeight="Bold" Margin="0 0 0 4" Text="" />
</Grid>
</ContentPresenter>
<Border x:Name="ElementBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2" />
</Canvas>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>