|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <ResourceDictionary
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:BPASmartClient.CustomResource.UserControls">
-
- <!--#region icoButton-->
- <Style TargetType="{x:Type local:IcoButton}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type local:IcoButton}">
- <Grid Name="PART_gr">
- <Border
- Name="PART_br"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}" />
- <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
- <TextBlock
- Name="PART_icoText"
- Margin="0,0,10,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontFamily="{TemplateBinding FontFamily}"
- FontSize="{TemplateBinding FontSize}"
- Foreground="{TemplateBinding Foreground}" />
- <TextBlock
- Name="PART_content"
- Grid.Column="1"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontFamily="{TemplateBinding FontFamily}"
- FontSize="{TemplateBinding FontSize}"
- Foreground="{TemplateBinding Foreground}" />
- </StackPanel>
- </Grid>
- <!--<ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="PART_br" Property="BorderBrush" Value="{TemplateBinding EnableColor}" />
- <Setter TargetName="PART_icoText" Property="Foreground" Value="red" />
- <Setter TargetName="PART_content" Property="Foreground" Value="red" />
- </Trigger>
- </ControlTemplate.Triggers>-->
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
-
- </ResourceDictionary>
|