<Window x:Class="Minimal.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:go="http://schemas.nwoods.com/GoXam"
        mc:Ignorable="d"
        Title="GoWpf Minimal" Width="400" Height="300">
  <FrameworkElement.Resources>
    <DataTemplate x:Key="MyNodeTemplate">
      <Border BorderBrush="Black" BorderThickness="1"
              Padding="3" CornerRadius="3"
              Background="{Binding Path=Data.Color}"
              go:Part.SelectionAdorned="True"
              go:Node.Location="{Binding Path=Data.Location, Mode=TwoWay}">
        <TextBlock Text="{Binding Path=Data.Key}" />
      </Border>
    </DataTemplate>
  </FrameworkElement.Resources>
  <Grid>
    <go:Diagram x:Name="myDiagram"
                Padding="10"
                HorizontalContentAlignment="Stretch"
                VerticalContentAlignment="Stretch"
                NodeTemplate="{StaticResource MyNodeTemplate}">
    </go:Diagram>
  </Grid>
</Window>
