<Window x:Class="WPF_Przycisk.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="400" Width="400">
    <Window.Resources>
        <LinearGradientBrush x:Key="NiebieskiGradient" StartPoint="0,0.5" EndPoint="1,0.5">
            <GradientStop Color="Blue" Offset="0.0" />
            <GradientStop Color="Navy" Offset="1.0" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="FioletowyGradient" StartPoint="0,0.5" EndPoint="1,0.5">
            <GradientStop Color="Blue" Offset="0.0" />
            <GradientStop Color="BlueViolet" Offset="1.0" />
        </LinearGradientBrush>
        <Style x:Key="StylNiebieski">
            <Setter Property="Control.Background" Value="{StaticResource NiebieskiGradient}" />
            <Setter Property="Control.Foreground" Value="White" />
            <Style.Triggers>
                <Trigger Property="Control.IsFocused" Value="True">
                    <Setter Property="Control.Background" Value="{StaticResource FioletowyGradient}" />
                </Trigger>
                <Trigger Property="Control.IsMouseOver" Value="True">
                    <Setter Property="Control.Background" Value="{StaticResource FioletowyGradient}" />
                </Trigger>
            </Style.Triggers>
        </Style>
    </Window.Resources>
    <Grid>
        <Button Name="button1" HorizontalContentAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" Height="100" Width="200" Style="{StaticResource StylNiebieski}" Click="button1_Click">
            <Button.RenderTransform>
                <RotateTransform CenterX="0" CenterY="0" Angle="45" />
            </Button.RenderTransform>
            <StackPanel Orientation="Horizontal">
                <Image Width ="70" Height="70" Source="logo.gif" />
                <Rectangle Width="10" />
                <TextBlock FontSize="16">
                    Uniwersystet
                    <LineBreak/> Mikołaja
                    <LineBreak/> Kopernika
                </TextBlock>
            </StackPanel>
        </Button>
    </Grid>
</Window>
