<Window x:Class="XamlWPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:XamlWPF"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525">
    <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.Foreground" Value="White" />
            <Setter Property="Control.Background" Value="{StaticResource NiebieskiGradient}" />            
            <Setter Property="TextBlock.Foreground" Value="White" />
            <Setter Property="TextBlock.Background" Value="{StaticResource NiebieskiGradient}" />
            <Setter Property="Shape.Fill" Value="{StaticResource NiebieskiGradient}" />
            <Style.Triggers>
                <Trigger Property="UIElement.IsMouseOver" Value="True">
                    <Setter Property="Control.Background" Value="{StaticResource FioletowyGradient}" />
                    <Setter Property="TextBlock.Background" Value="{StaticResource FioletowyGradient}" />
                    <Setter Property="Shape.Fill" Value="{StaticResource FioletowyGradient}" />
                </Trigger>
            </Style.Triggers>
        </Style>
    </Window.Resources>
    <StackPanel Orientation="Vertical">
        <Button x:Name="button" Margin="10,10,10,10"
                HorizontalAlignment="Center" VerticalAlignment="Center" 
                Width="200" Height="100"                
                Style="{StaticResource StylNiebieski}">
            <StackPanel Orientation="Horizontal">
                <Image Width ="70" Height="70" Source="logo.gif" />
                <Rectangle Width="10" />
                <TextBlock FontSize="16">
                    <Run Foreground="Yellow">Uniwersystet</Run><LineBreak/>
                    Mikołaja<LineBreak/>
                    Kopernika
                </TextBlock>
            </StackPanel>
        </Button>        
        <Button Width="100" Height="50" Margin="0,0,0,10"
                Style="{StaticResource StylNiebieski}">
            <Button.RenderTransform>
                <!--<RotateTransform Angle="45" />-->
                <!--<TranslateTransform X="50" Y="-25" />-->
                <!--<ScaleTransform ScaleX="1.5" ScaleY="0.5" />-->
                <!--<SkewTransform AngleX="45" />-->
                <!--
                <TransformGroup>
                    <RotateTransform Angle="45" />                    
                    <TranslateTransform X="50" Y="-25" />                    
                </TransformGroup>
                -->
                <MatrixTransform Matrix="0.866 0.5 -0.5 0.866, 50, -50" />
            </Button.RenderTransform>
        </Button>
        <Button Width="100" Height="50" Margin="0,0,0,10"
                Style="{StaticResource StylNiebieski}" />
        <Button Width="100" Height="50" Margin="0,0,0,10"
                Style="{StaticResource StylNiebieski}" />
    </StackPanel>
</Window>
