Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:Controls"
- xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing">
- <Style TargetType="local:UniformButton">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="local:UniformButton">
- <ed:RegularPolygon x:Name="regularPolygon" Fill="White" Height="100" InnerRadius="0.55" PointCount="5" Stretch="Fill" Stroke="Black"
- Width="100" StrokeThickness="0.5">
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Normal"/>
- <VisualState x:Name="Hovered">
- <Storyboard>
- <!-- СМОТРЕТЬ СЮДА -->
- <ColorAnimation Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="regularPolygon"
- To="{Binding HoverBackground}">
- </ColorAnimation>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- </ed:RegularPolygon>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement