<?xml version="1.0" encoding="utf-8"?>
<Window x:Class="QC.QTMApplication.Dialogs.TreeIconLegenDialog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" Height="360" Width="325" Title="QSPR Tree Icon Legend" WindowStartupLocation="CenterOwner" WindowStyle="ToolWindow" xmlns:dialogs="clr-namespace:QC.QTMApplication.Dialogs;assembly=QSPR">
  <FrameworkElement.Resources>
    <ResourceDictionary>
      <DataTemplate x:Key="LegendItemDataTemplate">
        <StackPanel Orientation="Horizontal">
          <Grid Margin="5">
            <Rectangle Name="WhiteIconBackground" Fill="#FFFFFFFF" Width="16" Height="16" />
            <Image Height="16" Width="16" Source="{Binding ImagePath}" />
          </Grid>
          <TextBlock FontSize="14" Margin="0,5" Text="{Binding Description}" />
        </StackPanel>
      </DataTemplate>
    </ResourceDictionary>
  </FrameworkElement.Resources>
  <Grid Margin="5">
    <Grid.RowDefinitions>
      <RowDefinition Height="40" />
      <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <TextBlock Margin="5" Grid.Row="0" FontSize="16">QSPR Tree Icon Legend</TextBlock>
    <ListBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="1" Margin="5" ItemTemplate="{DynamicResource LegendItemDataTemplate}" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" ItemsSource="{Binding LegendItems}" />
  </Grid>
</Window>