<?xml version="1.0" encoding="utf-8"?>
<Window x:Class="QC.QMine.About" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:conv="clr-namespace:QC.QMine.QMineInterface;assembly=QMineInterface" Title="About QMine" Height="600" Width="600" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Icon="/QMineUI;component/Images/App.png" xmlns:qmine="clr-namespace:QC.QMine;assembly=QMineUI" DataContext="{Binding RelativeSource={RelativeSource Self}}">
  <FrameworkElement.Resources>
    <ResourceDictionary>
      <conv:BoolToVisibilityConverter x:Key="boolToVisibilityConverter" />
    </ResourceDictionary>
  </FrameworkElement.Resources>
  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="Auto" />
      <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <Image Source="/QMineUI;component/Images/App.png" Width="100" Height="80" Grid.Row="0" Grid.Column="0" Margin="3" />
    <GroupBox Grid.Row="0" Grid.Column="1" Margin="3">
      <HeaderedContentControl.Header>
        <Border>
          <TextBlock Text="QMine information" />
        </Border>
      </HeaderedContentControl.Header>
      <Grid>
        <Grid.RowDefinitions>
          <RowDefinition Height="Auto" />
          <RowDefinition Height="Auto" />
          <RowDefinition Height="Auto" />
          <RowDefinition Height="Auto" />
          <RowDefinition Height="Auto" />
          <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="Auto" />
          <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <TextBlock Text="Product Name:" Grid.Row="0" Grid.Column="0" Margin="3" />
        <TextBlock FontWeight="Bold" Grid.Row="0" Grid.Column="1" Margin="3" Text="{Binding AssemblyProduct}" />
        <TextBlock Text="Version:" Grid.Row="1" Grid.Column="0" Margin="3" />
        <TextBlock FontWeight="Bold" Grid.Row="1" Grid.Column="1" Margin="3" Text="{Binding AssemblyVersion}" />
        <TextBlock Text="Company Name:" Grid.Row="2" Grid.Column="0" Margin="3" />
        <TextBlock FontWeight="Bold" Grid.Row="2" Grid.Column="1" Margin="3" Text="{Binding AssemblyCompany}" />
        <TextBlock Text=".NET Framework used:" Grid.Row="3" Grid.Column="0" Margin="3" />
        <TextBlock FontWeight="Bold" Grid.Row="3" Grid.Column="1" Margin="3" Text="{Binding FrameworkVersion}" />
        <TextBlock Text="Copyright:" Grid.Row="4" Grid.Column="0" Margin="3" />
        <TextBlock FontWeight="Bold" Grid.Row="4" Grid.Column="1" Margin="3" Text="{Binding AssemblyCopyright}" />
        <TextBlock Text="BuildDate:" Grid.Row="5" Grid.Column="0" Margin="3" />
        <TextBlock FontWeight="Bold" Grid.Row="5" Grid.Column="1" Margin="3" Text="{Binding AssemblyBuildDate}" />
      </Grid>
    </GroupBox>
    <GroupBox Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Margin="3">
      <HeaderedContentControl.Header>
        <Border>
          <TextBlock Text="Description" Margin="3" />
        </Border>
      </HeaderedContentControl.Header>
      <StackPanel Orientation="Vertical" Margin="3">
        <TextBlock FontWeight="Bold" Margin="3" TextWrapping="WrapWithOverflow" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.CanContentScroll="True" Text="{Binding AssemblyDescription}" />
        <TextBlock Visibility="{Binding Source={x:Static Application.Current}, Path=SecurityConfig.EnableFullQMine, Converter={StaticResource boolToVisibilityConverter}}">For any QMine related help email to <Hyperlink NavigateUri="qmine.help@qualcomm.com" RequestNavigate="Hyperlink_RequestNavigate">QMine help</Hyperlink></TextBlock>
      </StackPanel>
    </GroupBox>
  </Grid>
</Window>