<Window x:Class="InkCanvas.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="608">
    <Grid >
        <Grid.ColumnDefinitions>
            <ColumnDefinition/> 
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Grid.Resources>
            <x:Array x:Key="editingModes" x:Type="{x:Type InkCanvasEditingMode}">
                <x:Static Member="InkCanvasEditingMode.None"/>
                <x:Static Member="InkCanvasEditingMode.Ink"/>
                <x:Static Member="InkCanvasEditingMode.GestureOnly"/>
                <x:Static Member="InkCanvasEditingMode.InkAndGesture"/>
                <x:Static Member="InkCanvasEditingMode.Select"/>
                <x:Static Member="InkCanvasEditingMode.EraseByPoint"/>
                <x:Static Member="InkCanvasEditingMode.EraseByStroke"/>
            </x:Array>
            <DrawingAttributes Color="Yellow" x:Key="defaultDrawingAttributes"/>
        </Grid.Resources>
        <InkCanvas x:Name="inkCanvas"
            EditingMode=
                  "{Binding ElementName=editingMode, Path=SelectedItem}" Margin="12,12,2,12">
            <InkCanvas.DefaultDrawingAttributes>
                <DrawingAttributes  Width="10" Color="Yellow"/>
            </InkCanvas.DefaultDrawingAttributes>
            <InkCanvas.Background>
                <ImageBrush >
                    <ImageBrush.ImageSource>
                        <BitmapImage UriSource="Images/tlo.png"/>
                    </ImageBrush.ImageSource>
                </ImageBrush>
            </InkCanvas.Background>

        </InkCanvas>
        <Grid  Grid.Column="1" Margin="0,12,12,12" >
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <ListBox  Name="editingMode" 
          ItemsSource="{StaticResource editingModes}"  HorizontalAlignment="Right" Padding="2" SelectionChanged="editingMode_SelectionChanged" />
            <GroupBox Grid.Row="1" Height="70"  Header="Gest">
                <TextBlock     Name="textBlock1" FontWeight="Bold" TextAlignment="Center"  />
            </GroupBox>
        </Grid>
    </Grid>
</Window>
