12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <ResourceDictionary
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:FWindSoft.Wpf.Controls">
- <Style TargetType="{x:Type local:DescriptionDecorator}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type local:DescriptionDecorator}">
- <Border BorderThickness="1" BorderBrush="DarkGray">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition Width="Auto"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <ContentPresenter Grid.Column="0" Content="{TemplateBinding Content}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
- <ContentControl BorderThickness="0" Grid.Column="1" Content="{TemplateBinding Description}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"></ContentControl>
- </Grid>
- </Border>
-
- </ControlTemplate>
- </Setter.Value>
-
- </Setter>
- </Style>
- <Style TargetType="{x:Type local:ButtonDecorator}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type local:ButtonDecorator}">
- <Border BorderThickness="1" BorderBrush="DarkGray">
-
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition Width="Auto"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <ContentPresenter Grid.Column="0" Content="{TemplateBinding Content}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
- <Button BorderThickness="0" Grid.Column="1" Content="{TemplateBinding Description}" Style="{TemplateBinding ButtonStyle}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Command="{TemplateBinding Command}" CommandParameter="{TemplateBinding CommandParameter}"></Button>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
|