<mah:MetroWindow x:Class="ZKuP.SetHinweis"
        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:mah="http://metro.mahapps.com/winfx/xaml/controls"
        xmlns:local="clr-namespace:ZKuP"
        mc:Ignorable="d"
        Title="Hinweis ändern" Height="177" Width="340" ResizeMode="NoResize">

    <mah:MetroWindow.Resources>
        <local:SystemIconConverter x:Key="SystemIcon"></local:SystemIconConverter>
    </mah:MetroWindow.Resources>

    <Grid>
        <Border x:Name="canvasHinweis" CornerRadius="8" Visibility="Visible" BorderBrush="LightGray" BorderThickness="1" Width="300" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="11,10,0,0">
            <Grid>
                <Image Visibility="Visible"  
                        Margin="10,22,0,0"
                        Stretch="Uniform"
                        MaxHeight="30"
                        VerticalAlignment="Top"
                        HorizontalAlignment="Left"
                        Source="{Binding Converter={StaticResource SystemIcon}, ConverterParameter=Warning}" Width="30" Height="30"/>

                <TextBox x:Name="lblHinweis" Background="{x:Null}" TextWrapping="Wrap" TextAlignment="Center" VerticalContentAlignment="Center" Padding="55,5,10,5" HorizontalAlignment="Right" VerticalAlignment="Top" Width="300" Height="80" MaxLines="4" BorderBrush="{x:Null}" AcceptsReturn="True" PreviewKeyDown="lblHinweis_PreviewKeyDown" />
                <!--Background="#32FF5D00"-->
            </Grid>
        </Border>
        <Button x:Name="btnSetHinweis" Content="Hinweis setzen" FontSize="12" Padding="-2" Height="25" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,106,0,0" Width="180" Click="btnSetHinweis_Click"/>
        <Button x:Name="btnDeleteHinweis" Content="Hinweis löschen" FontSize="12" Padding="-2" Height="25" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,106,12,0" Width="105" Click="btnDeleteHinweis_Click"/>
    </Grid>
</mah:MetroWindow>
