WPF buttons with arrows and WPF buttons with arrows
XAML code:
<ControlTemplate x: key = "btnTpl" TargetType = "RadioButton"> <StackPanel Orientation = "Vertical" Height = "30" Background = "Transparent"> <Border Name = "border" Background = "# 006AB8 "Height =" 25 "> <ContentPresenter Name =" contentPre "verticalignment =" Center "HorizontalAlignment =" Center "TextElement. foreground = "# FFF" TextElement. fontSize = "12" Margin = "0"/> </Border> <Path x: name = "path" HorizontalAlignment = "Center" VerticalAlignment = "Center" Data = "M 0 L 6 4 L 12 0 Z"> <Path. fill> <SolidColorBrush Color = "#006AB8"/> </Path. fill> </Path> </StackPanel> <ControlTemplate. triggers> <Trigger Property = "IsMouseOver" Value = "True"> <Setter TargetName = "border" Property = "Margin" Value = "2 2 0"> </Setter> <Setter TargetName = "border" Property = "Height" Value = "23"> </Setter> <Setter Property = "TextElement. fontSize "Value =" 11 "> </Setter> </Trigger> <Trigger Property =" IsChecked "Value =" true "> <Setter TargetName =" border "Property =" Border. background "Value =" #15BDF7 "> </Setter> <Setter TargetName =" path "Property =" Fill "> <Setter. value> <SolidColorBrush Color = "#15BDF7"/> </Setter. value> </Setter> </Trigger> </ControlTemplate. triggers> </ControlTemplate>View Code
: