Selector="Button.ReturnButton"
Selector="Button.SetupButton"
<Style Selector="Button.SetupButton"> <Setter Property="HorizontalAlignment" Value="Center"/> <Setter Property="VerticalContentAlignment" Value="Center"/> <Setter Property="BorderBrush" Value="Transparent"/> <Setter Property="HorizontalContentAlignment" Value="Stretch"/> <Setter Property="VerticalContentAlignment" Value="Stretch"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" RecognizesAccessKey="True" RenderTransformOrigin="0.5,0.5"/> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style Selector="Button.ReturnButton"> <Setter Property="HorizontalAlignment" Value="Center"/> <Setter Property="VerticalContentAlignment" Value="Center"/> <Setter Property="BorderBrush" Value="Transparent"/> <Setter Property="HorizontalContentAlignment" Value="Stretch"/> <Setter Property="VerticalContentAlignment" Value="Stretch"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <Grid> <Image Source="/Assets/SetUp/icon_nav_return_alice.bmp" Classes="SetupButtonImage"/> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style>
BasedOn
Selector="Button.SetupButton.ReturnButton"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)