<Window x:Class="Photoalbum.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:Photoalbum"
        xmlns:diag="http://mindfusion.eu/diagramming/wpf" xmlns:common="http://mindfusion.eu/common/wpf" 
        mc:Ignorable="d" Loaded="Window_Loaded" Icon="/Icon.ico"
        Title="MindFusion.Diagramming Sample: Photoalbum" Height="768" Width="1024">
    <Window.Resources>
        <ContextMenu x:Key="ContextMenu">
            <MenuItem x:Name="FolderMenuItem" Header="Add new folder" Click="AddFolderMenuItem_Click"/>
            <MenuItem x:Name="ImageMenuItem" Header="Add new image" Click="AddImageMenuItem_Click"/>
        </ContextMenu>
        <BitmapImage x:Key="Folder" UriSource="Folder.png" />
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <ScrollViewer HorizontalScrollBarVisibility="Auto" Focusable="False" Grid.Row="0">
            <diag:Diagram x:Name="diagram" Bounds="0, 0, 1000, 1000" DefaultShape="Ellipse" AlignToGrid="False" Behavior="Modify"
                          NodeModified="diagram_NodeModified"
                          NodeClicked="diagram_NodeClicked">
            </diag:Diagram>
        </ScrollViewer>

        <TextBlock x:Name="textBlock" TextWrapping="Wrap" Margin="10" Grid.Row="1" Padding="8" FontSize="14"/>
    </Grid>
</Window>
