<controls:MetroWindow x:Class="SPCode.UI.Windows.AboutWindow"
                      xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
                      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      Width="800" 
                      Height="500"
                      ResizeMode="CanResize" 
                      WindowStartupLocation="CenterOwner" 
                      GlowBrush="{DynamicResource AccentColorBrush}" 
                      ShowTitleBar="true" 
                      TitleCharacterCasing="Normal"
                      ShowInTaskbar="True">

  <controls:MetroWindow.Resources>
    <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseDark.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Red.xaml" />
      </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
  </controls:MetroWindow.Resources>

  <controls:MetroWindow.RightWindowCommands>
    <controls:WindowCommands>
      <Button x:Name="OpenLicenseButton" Click="OpenLicenseFlyout"/>
    </controls:WindowCommands>
  </controls:MetroWindow.RightWindowCommands>

  <controls:MetroWindow.Flyouts>
    <controls:FlyoutsControl>
      <controls:Flyout x:Name="LicenseFlyout" Position="Right" Width="450" IsOpen="False" Theme="Adapt" IsModal="True" IsPinned="False">
        <TextBox x:Name="FlyoutTextBox" IsReadOnly="True" 
                 Margin="3,0,3,3" 
                 VerticalScrollBarVisibility="Visible" />
      </controls:Flyout>
    </controls:FlyoutsControl>
  </controls:MetroWindow.Flyouts>

  <Grid>
    <TextBlock Name="TitleBox" FlowDirection="RightToLeft" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,20,0,0" FontSize="20" FontWeight="Light" IsHitTestVisible="False" />
    <Image HorizontalAlignment="Center" VerticalAlignment="Center" Source="/SPCode;component/Resources/Icons/icon256x.png" Width="256" Height="256" />
    <ScrollViewer Margin="0,65,0,0">
      <StackPanel Name="ContentStackPanel">
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="Auto" Margin="0,2,0,2" IsHitTestVisible="False">
          <TextBlock Name="PeopleInvolvedBlock" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="45,0,0,0" Text="People involved:" FontSize="30" FontWeight="Thin" />
          <StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="325,15,0,15">
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- Julien 'Aeon' Kluge (Original creator of SPEdit)" FontWeight="Bold" FontSize="16" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- Hexah (Maintainer, Italian translation)" FontWeight="Bold" FontSize="14" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- Natanel Shitrit  (Maintainer)" FontWeight="Bold" FontSize="14" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- ampere (Maintainer, Spanish translation)"  FontWeight="Bold" FontSize="14"/>
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- Bara (Tester, Proposer, Contributor, Update Server, Domain)" FontWeight="Bold" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- mev (Proposer, Contributor, Color Scheme Designer)" FontWeight="Bold" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- Arkarr (French translation)" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- azalty (French translation)" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- JOMENVEST (Swedish translation)" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- Grey83 (Russian translation)" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- Ghost Rideaux (Portuguese translation)" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- Trostal (Korean translation)" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- Johnny2525 (Korean translation)" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- Mithat Güner (Turkish translation)" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- Reinakumiko (Chinese (simplified) translation)" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- dev-xiamu (Chinese (simplified) translation)" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- Pohearts (Chinese (simplified and traditional) translation)" />
            <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="- milutinke (Serbian translation)" />
          </StackPanel>
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="150" Margin="0,2,0,2">
          <Rectangle HorizontalAlignment="Left" VerticalAlignment="Stretch" Height="150" Width="300" IsHitTestVisible="False">
            <Rectangle.Fill>
              <ImageBrush ImageSource="/SPCode;component/Resources/AboutImages/MahAppsMetro.png" Stretch="Uniform" />
            </Rectangle.Fill>
          </Rectangle>
          <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Margin="150,5,0,0" Text="MahApps.Metro" FontSize="18" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Margin="450,5,0,0" Text="a UI toolkit for WPF" FontSize="18" FontWeight="Thin" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,40,5,0" Text="Authors:  Paul Jenkins + MahApps GitHub Community" FontSize="16" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,70,5,0" Text="License:  Microsoft Public License (Ms-PL)" FontSize="16" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,100,5,0" FontSize="16">
                        <Hyperlink NavigateUri="http://mahapps.com/" RequestNavigate="HyperlinkRequestNavigate">Website</Hyperlink>
          </TextBlock>
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="500,100,5,0" FontSize="16">
                        <Hyperlink NavigateUri="https://github.com/MahApps/MahApps.Metro" RequestNavigate="HyperlinkRequestNavigate">GitHub Repository</Hyperlink>
          </TextBlock>
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="150" Margin="0,2,0,2">
          <Rectangle HorizontalAlignment="Left" VerticalAlignment="Stretch" Height="150" Width="300" IsHitTestVisible="False">
            <Rectangle.Fill>
              <ImageBrush ImageSource="/SPCode;component/Resources/AboutImages/SharpDevelop.png" Stretch="Uniform" />
            </Rectangle.Fill>
          </Rectangle>
          <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Margin="190,5,0,0" Text="SharpDevelop" FontSize="18" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Margin="410,5,0,0" Text="AvalonEdit" FontSize="18" FontWeight="Thin" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,40,5,0" Text="Authors:  Daniel Grunwald + SharpDevelop Community" FontSize="16" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,70,5,0" Text="License:  The MIT License (MIT)" FontSize="16" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,100,5,0" FontSize="16">
                        <Hyperlink NavigateUri="http://www.icsharpcode.net/" RequestNavigate="HyperlinkRequestNavigate">Website</Hyperlink>
          </TextBlock>
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="525,100,5,0" FontSize="16">
                        <Hyperlink NavigateUri="https://github.com/icsharpcode/SharpDevelop/" RequestNavigate="HyperlinkRequestNavigate">GitHub Repository</Hyperlink>
          </TextBlock>
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="150" Margin="0,2,0,2">
          <Rectangle HorizontalAlignment="Left" VerticalAlignment="Stretch" Height="150" Width="300" IsHitTestVisible="False">
            <Rectangle.Fill>
              <ImageBrush ImageSource="/SPCode;component/Resources/AboutImages/AvalonDock.png" Stretch="Uniform" />
            </Rectangle.Fill>
          </Rectangle>
          <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Margin="220,5,0,0" Text="XCEED" FontSize="18" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Margin="380,5,0,0" Text="AvalonDock" FontSize="18" FontWeight="Thin" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,40,5,0" Text="Authors:  Xceed Software Inc." FontSize="16" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,70,5,0" Text="License:  Microsoft Public License (Ms-PL)" FontSize="16" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,100,5,0" FontSize="16">
                        <Hyperlink NavigateUri="http://xceed.com/" RequestNavigate="HyperlinkRequestNavigate">Website</Hyperlink>
          </TextBlock>
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="525,100,5,0" FontSize="16">
                        <Hyperlink NavigateUri="https://github.com/chandramouleswaran/AvalonDock" RequestNavigate="HyperlinkRequestNavigate">GitHub Repository</Hyperlink>
          </TextBlock>
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="150" Margin="0,2,0,2">
          <Rectangle HorizontalAlignment="Left" VerticalAlignment="Stretch" Height="150" Width="300" IsHitTestVisible="False">
            <Rectangle.Fill>
              <ImageBrush ImageSource="/SPCode;component/Resources/AboutImages/sourcemod.png" Stretch="Uniform" />
            </Rectangle.Fill>
          </Rectangle>
          <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Margin="80,5,0,0" FontSize="18" IsHitTestVisible="False" ><Run Text="Source"/><Run Text="M"/><Run Text="od"/></TextBlock>
          <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Margin="485,5,49,0" FontSize="18" FontWeight="Thin" IsHitTestVisible="False" ><Run Text="Source"/><Run Text="M"/><Run Text="od "/><Run Text="C"/><Run Text="ompiler &amp;"/><Run Text=" I"/><Run Text="ncludes"/></TextBlock>
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,40,5,0" Text="Authors:  AlliedModders Community" FontSize="16" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,70,5,0" Text="License:  GNU GPLv3" FontSize="16" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,100,5,0" FontSize="16">
                        <Hyperlink NavigateUri="http://www.sourcemod.net/" RequestNavigate="HyperlinkRequestNavigate">Website</Hyperlink>
          </TextBlock>
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="525,100,5,0" FontSize="16">
                        <Hyperlink NavigateUri="https://github.com/alliedmodders/sourcemod" RequestNavigate="HyperlinkRequestNavigate">GitHub Repository</Hyperlink>
          </TextBlock>
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="150" Margin="0,2,0,2">
          <Rectangle HorizontalAlignment="Left" VerticalAlignment="Stretch" Height="150" Width="300" IsHitTestVisible="False">
            <Rectangle.Fill>
              <ImageBrush ImageSource="/SPCode;component/Resources/AboutImages/IconMonstr.png" Stretch="Uniform" />
            </Rectangle.Fill>
          </Rectangle>
          <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Margin="220,5,0,0" Text="iconmonstr" FontSize="18" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Margin="380,5,0,0" Text="Icons" FontSize="18" FontWeight="Thin" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,40,5,0" Text="Authors:  Alexander Kahlkopf" FontSize="16" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,70,5,0" Text="License:  Own License, © 2014 iconmonstr" FontSize="16" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,100,5,0" FontSize="16">
                        <Hyperlink NavigateUri="http://iconmonstr.com/" RequestNavigate="HyperlinkRequestNavigate">Website</Hyperlink>
          </TextBlock>
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="150" Margin="0,2,0,2">
          <Rectangle HorizontalAlignment="Left" VerticalAlignment="Stretch" Height="150" Width="300" IsHitTestVisible="False">
            <Rectangle.Fill>
              <ImageBrush ImageSource="/SPCode;component/Resources/AboutImages/peace-maker.jpg" Stretch="Uniform" />
            </Rectangle.Fill>
          </Rectangle>
          <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Margin="436,5,266,0" Text="Lysis-Java" FontSize="18" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Margin="530,5,122,0" FontSize="18" FontWeight="Thin" IsHitTestVisible="False" ><Run Text=".smx Decompiler"/><LineBreak/><Run/></TextBlock>
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,40,5,0" FontSize="16" IsHitTestVisible="False" ><Run Text="Authors:  "/><Run Text="Peace-Maker"/></TextBlock>
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,70,5,0" FontSize="16" IsHitTestVisible="False" ><Run Text="License:  "/><Run Text="Unknown"/></TextBlock>
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,100,5,0" FontSize="16">
                        <Hyperlink NavigateUri="https://github.com/peace-maker/lysis-java" RequestNavigate="HyperlinkRequestNavigate">GitHub Repository</Hyperlink>
          </TextBlock>
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="150" Margin="0,2,0,2">
          <Rectangle HorizontalAlignment="Left" VerticalAlignment="Stretch" Height="150" Width="300" IsHitTestVisible="False">
            <Rectangle.Fill>
              <ImageBrush ImageSource="/SPCode;component/Resources/AboutImages/alliedmodders.png" Stretch="Uniform" />
            </Rectangle.Fill>
          </Rectangle>
          <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Margin="431,5,273,0" Text="smxdasm" FontSize="18" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Margin="524,5,116,0" FontSize="18" FontWeight="Thin" IsHitTestVisible="False" ><Run Text=".smx "/><Run Text="Dissasembler"/></TextBlock>
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,40,5,0" FontSize="16" IsHitTestVisible="False" ><Run Text="Authors:  Allied"/><Run Text="M"/><Run Text="odders Community"/></TextBlock>
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,70,5,0" Text="License:  GNU GPLv3" FontSize="16" IsHitTestVisible="False" />
          <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="325,100,5,0" FontSize="16">
                        <Hyperlink NavigateUri="https://github.com/alliedmodders/sourcepawn/tree/master/tools/smxtools" RequestNavigate="HyperlinkRequestNavigate">Github Repository</Hyperlink>
          </TextBlock>
        </Grid>
      </StackPanel>
    </ScrollViewer>
  </Grid>
</controls:MetroWindow>
