<?xml version="1.0" encoding="utf-8"?>
<Application x:Class="GeoDashboard.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:local="clr-namespace:GeoDashboard">
  <Application.Resources>

    <!-- brush used to render results -->
    <SolidColorBrush x:Key="_brResult" Color="#ff15c1d0" />

    <!-- brush used to render crosshair -->
    <SolidColorBrush x:Key="_brCrossHair" Color="#ffc15ca1" />
                     
    <!-- style for all HyperlinkButton controls -->
    <Style TargetType="HyperlinkButton">
      <Setter Property="HorizontalAlignment" Value="Center" />
      <Setter Property="Foreground" Value="White" />
      <Setter Property="Margin" Value="6" />
    </Style>

    <!-- style for all C1FlexGrid controls -->
    <Style TargetType="c1:C1FlexGrid">
      <Setter Property="HeadersVisibility" Value="None" />
      <Setter Property="GridLinesVisibility" Value="None" />
      <Setter Property="Background" Value="Transparent" />
      <Setter Property="RowBackground" Value="Transparent" />
      <Setter Property="AlternatingRowBackground" Value="#ff151515" />
      <Setter Property="AutoGenerateColumns" Value="False" />
      <Setter Property="FontSize" Value="13" />
      <Setter Property="Margin" Value="0 6 0 0" />
      <Setter Property="IsEnabled" Value="False" />
    </Style>

    <!-- style for tile captions -->
    <Style TargetType="Border" x:Key="_tileCaption">
      <Setter Property="Padding" Value="6" />
      <Setter Property="CornerRadius" Value="4 4 0 0" />
      <Setter Property="Background">
        <Setter.Value>
          <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FAFAFA" Offset="0" />
            <GradientStop Color="#E0E0E0" Offset="1" />
          </LinearGradientBrush>
        </Setter.Value>
      </Setter>
    </Style>

    <!-- template for cells in grid histograms -->
    <DataTemplate x:Key="_histoCell">
      <Grid>
        <Rectangle Fill="{StaticResource _brResult}" Margin="0 5 0 5">
          <Rectangle.RenderTransform>
            <ScaleTransform ScaleX="{Binding PercentMax}" />
          </Rectangle.RenderTransform>
        </Rectangle>
        <!--<TextBlock 
           Text="{Binding Percent, StringFormat=p0}" 
           HorizontalAlignment="Left" VerticalAlignment="Center" 
           Foreground="White" Opacity=".4" FontWeight="Bold"/>-->
      </Grid>
    </DataTemplate>

  </Application.Resources>
</Application>