<Button x:Name="BtnDiscord" HorizontalAlignment="Left" Height="40" Margin="10,453,0,0" VerticalAlignment="Top" Width="153" Click="btnDiscord_Click" FontWeight="Bold" Style="{DynamicResource CloseButtonStyle}" Visibility="Visible" BorderThickness="0">
<Button.Resources>
<ImageBrush x:Key="Button.Background" ImageSource="/images/resim1.png" />
<ImageBrush x:Key="Button.MouseOver.Background" ImageSource="/images/resim2.png" />
<Style x:Key="CloseButtonStyle" TargetType="{x:Type Button}">
<Setter Property="Background" Value="{StaticResource Button.Background}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="true">
<Setter Property="Background" Value="{StaticResource Button.MouseOver.Background}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Button.Resources>
</Button>