diff options
Diffstat (limited to 'Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/TextIconButton.xaml')
| -rw-r--r-- | Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/TextIconButton.xaml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/TextIconButton.xaml b/Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/TextIconButton.xaml new file mode 100644 index 000000000..eb8d823f7 --- /dev/null +++ b/Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/TextIconButton.xaml @@ -0,0 +1,32 @@ +<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:material="http://materialdesigninxaml.net/winfx/xaml/themes" + xmlns:local="clr-namespace:Tango.FSE.Common.Controls"> + + <Style TargetType="{x:Type local:TextIconButton}" BasedOn="{StaticResource {x:Type Button}}"> + <Setter Property="ContentTemplate"> + <Setter.Value> + <DataTemplate> + <DockPanel> + <material:PackIcon Margin="-5 0 0 0" Width="Auto" Height="Auto" Kind="{Binding RelativeSource={RelativeSource AncestorType=local:TextIconButton},Path=Icon}" VerticalAlignment="Center" /> + <Label VerticalAlignment="Center" Content="{Binding}"></Label> + </DockPanel> + </DataTemplate> + </Setter.Value> + </Setter> + </Style> + + <Style x:Key="FSE_TextIconButton_Dark" TargetType="{x:Type local:TextIconButton}" BasedOn="{StaticResource FSE_RaisedButton_Dark_Hover}"> + <Setter Property="ContentTemplate"> + <Setter.Value> + <DataTemplate> + <DockPanel> + <material:PackIcon Margin="-5 0 0 0" Width="Auto" Height="Auto" Kind="{Binding RelativeSource={RelativeSource AncestorType=local:TextIconButton},Path=Icon}" VerticalAlignment="Center" /> + <Label VerticalAlignment="Center" Content="{Binding}"></Label> + </DockPanel> + </DataTemplate> + </Setter.Value> + </Setter> + </Style> + +</ResourceDictionary>
\ No newline at end of file |
