<Button Grid.Row="1" Height="214" HorizontalAlignment="Left" Margin="92,10,0,0" Name="Inv" VerticalAlignment="Top" Width="279" BorderBrush="{x:Null}" Foreground="{x:Null}" Click="Inv_Click" Grid.RowSpan="2" BorderThickness="0" ClickMode="Press" Focusable="False" > <Button.Style> <Style TargetType="{x:Type Button}"> <Setter Property="Background"> <Setter.Value> <ImageBrush ImageSource="/ManaData;component/Images/Inv.png"/> </Setter.Value> </Setter> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Background"> <Setter.Value> <ImageBrush ImageSource="/ManaData;component/Images/Inv2.png"/> </Setter.Value> </Setter> </Trigger> </Style.Triggers> </Style> </Button.Style> </Button>
<style.triggers> <trigger property="IsMouseOver" value="true"> <setter property="BorderBrush" value="{StaticResource ToYourBorder}"></setter> </trigger> </style.triggers>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)