<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
                    xmlns:local="clr-namespace:eDosStation">

    <BitmapImage x:Key="iBG" UriSource="Images/EPD-MK2.png" />
    <BitmapImage x:Key="iNG" UriSource="Images/EPD-N2.png" />
    <BitmapImage x:Key="iRD" UriSource="Images/Mk2OnReader.jpg" />
    
    <Style x:Key="ScrollBarPageButton"
               TargetType="{x:Type RepeatButton}">
        <Setter Property="SnapsToDevicePixels"
                    Value="True" />
        <Setter Property="OverridesDefaultStyle"
                    Value="true" />
        <Setter Property="IsTabStop"
                    Value="false" />
        <Setter Property="Focusable"
                    Value="false" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RepeatButton}">
                    <Border Background="Transparent" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ScrollBarThumb"
               TargetType="{x:Type Thumb}">
        <Setter Property="SnapsToDevicePixels"
                    Value="True" />
        <Setter Property="OverridesDefaultStyle"
                    Value="true" />
        <Setter Property="IsTabStop"
                    Value="false" />
        <Setter Property="Focusable"
                    Value="false" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Thumb}">
                    <Border CornerRadius="12"
                                Background="Red">
                        <Border.Style>
                            <Style TargetType="{x:Type Border}">
                                <Setter Property="Opacity"
                                            Value="0.7" />
                                <Style.Triggers>
                                    <Trigger Property="IsMouseOver"
                                                 Value="True">
                                        <Setter Property="Opacity"
                                                    Value="0.3" />
                                    </Trigger>
                                    <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=Thumb}, Path=IsDragging}"
                                                     Value="True">
                                        <Setter Property="Opacity"
                                                    Value="0.3" />
                                    </DataTrigger>
                                </Style.Triggers>
                            </Style>
                        </Border.Style>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <ControlTemplate x:Key="VerticalScrollBar"
                         TargetType="{x:Type ScrollBar}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="0.00001*" />
            </Grid.RowDefinitions>
            <Border Grid.RowSpan="3"
                        CornerRadius="12"
                        Background="Gray"
                        Opacity="0.2" />
            <Track Name="PART_Track"
                       Grid.Row="1"
                       IsDirectionReversed="true">
                <Track.DecreaseRepeatButton>
                    <RepeatButton Style="{StaticResource ScrollBarPageButton}"
                                      Command="ScrollBar.PageUpCommand" />
                </Track.DecreaseRepeatButton>
                <Track.Thumb>
                    <Thumb Style="{StaticResource ScrollBarThumb}"
                               Margin="1,0,1,0"
                               Background="Transparent" />
                </Track.Thumb>
                <Track.IncreaseRepeatButton>
                    <RepeatButton Style="{StaticResource ScrollBarPageButton}"
                                      Command="ScrollBar.PageDownCommand" />
                </Track.IncreaseRepeatButton>
            </Track>
        </Grid>
    </ControlTemplate>

    <ControlTemplate x:Key="HorizontalScrollBar"
                         TargetType="{x:Type ScrollBar}">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition MaxWidth="18" />
                <ColumnDefinition Width="0.00001*" />
                <ColumnDefinition MaxWidth="18" />
            </Grid.ColumnDefinitions>
            <Border Grid.ColumnSpan="3"
                        CornerRadius="2"
                        Background="#F0F0F0" />
            <Track Name="PART_Track"
                       Grid.Column="1"
                       IsDirectionReversed="False">
                <Track.DecreaseRepeatButton>
                    <RepeatButton Style="{StaticResource ScrollBarPageButton}"
                                      Command="ScrollBar.PageLeftCommand" />
                </Track.DecreaseRepeatButton>
                <Track.Thumb>
                    <Thumb Style="{StaticResource ScrollBarThumb}"
                               Margin="0,1,0,1"
                               Background="Transparent" />
                </Track.Thumb>
                <Track.IncreaseRepeatButton>
                    <RepeatButton Style="{StaticResource ScrollBarPageButton}"
                                      Command="ScrollBar.PageRightCommand" />
                </Track.IncreaseRepeatButton>
            </Track>
        </Grid>
    </ControlTemplate>

    <Style x:Key="{x:Type ScrollBar}"
               TargetType="{x:Type ScrollBar}">
        <Setter Property="SnapsToDevicePixels"
                    Value="True" />
        <Setter Property="OverridesDefaultStyle"
                    Value="true" />
        <Style.Triggers>
            <Trigger Property="Orientation"
                         Value="Horizontal">
                <Setter Property="Width"
                            Value="Auto" />
                <Setter Property="Height"
                            Value="30" />
                <Setter Property="Template"
                            Value="{StaticResource HorizontalScrollBar}" />
            </Trigger>
            <Trigger Property="Orientation"
                         Value="Vertical">
                <Setter Property="Width"
                            Value="30" />
                <Setter Property="Height"
                            Value="Auto" />
                <Setter Property="Margin"
                            Value="0,2,0,2" />
                <Setter Property="Template"
                            Value="{StaticResource VerticalScrollBar}" />
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="CustomScrollViewer"
               TargetType="{x:Type ScrollViewer}">
        <Setter Property="OverridesDefaultStyle"
                    Value="True" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ScrollViewer}">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <ScrollContentPresenter Grid.Column="0"   />
                        
                        <ScrollBar Name="PART_VerticalScrollBar"
                                       Value="{TemplateBinding VerticalOffset}"
                                       Maximum="{TemplateBinding ScrollableHeight}"
                                       ViewportSize="{TemplateBinding ViewportHeight}"
                                       Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
                                       Grid.Column="1"    />
                        <ScrollBar Name="PART_HorizontalScrollBar"
                                       Orientation="Horizontal"
                                       Grid.Column="0"
                                       Value="{TemplateBinding HorizontalOffset}"
                                       Maximum="{TemplateBinding ScrollableWidth}"
                                       ViewportSize="{TemplateBinding ViewportWidth}"
                                       Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="OkCancelButton" TargetType="telerik:RadButton">
        <Setter Property="Width" Value="190"/>
        <Setter Property="CornerRadius" Value="10"/>
        <Setter Property="Height" Value="50"/>
        <Setter Property="Width" Value="190"/>
        <Setter Property="TextBlock.FontSize" Value="25" />
    </Style>

    <Color x:Key="sckcLB">#A1DAF7</Color>
    <Color x:Key="sckcP">#9F4191</Color>
    <Color x:Key="sckcDP">#56256B</Color>
    <SolidColorBrush x:Key="sckbLB" Color="{StaticResource sckcLB}"/>
    <SolidColorBrush x:Key="sckbP" Color="{StaticResource sckcP}"/>


    <TextBlock x:Key="tbFooter" Foreground="white" FontSize="12" >
 &#x2B24;&#x2B24;&#x2B24;<Run Foreground="#A1DAF7">&#x2B24;</Run>&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;<Run Foreground="#A1DAF7">&#x2B24;</Run>&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;<LineBreak/>
 &#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;<Run Foreground="#A1DAF7">&#x2B24;</Run>&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;<Run Foreground="#A1DAF7">&#x2B24;</Run>&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;<Run Foreground="#A1DAF7">&#x2B24;</Run><LineBreak/>
 &#x2B24;&#x2B24;&#x2B24;&#x2B24;<Run Foreground="#A1DAF7">&#x2B24;</Run>&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;<Run Foreground="#A1DAF7">&#x2B24;</Run>&#x2B24;&#x2B24;<Run Foreground="#A1DAF7">&#x2B24;</Run>&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;<Run Foreground="#A1DAF7">&#x2B24;</Run>&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;<Run Foreground="#A1DAF7">&#x2B24;</Run>&#x2B24;<LineBreak/>
 <Run Foreground="#9F4191">&#x2B24;</Run><Run Foreground="#A1DAF7">&#x2B24;</Run>&#x2B24;<Run Foreground="#A1DAF7">&#x2B24;</Run>&#x2B24;&#x2B24;<Run Foreground="#A1DAF7">&#x2B24;</Run><Run Foreground="#56256B">&#x2B24;</Run><Run Foreground="#9F4191">&#x2B24;</Run>&#x2B24;&#x2B24;<Run Foreground="#9F4191">&#x2B24;</Run>&#x2B24;&#x2B24;&#x2B24;<Run Foreground="#9F4191">&#x2B24;</Run>&#x2B24;&#x2B24;<Run Foreground="#9F4191">&#x2B24;&#x2B24;</Run>&#x2B24;<Run Foreground="#A1DAF7">&#x2B24;</Run>&#x2B24;&#x2B24;<Run Foreground="#9F4191">&#x2B24;</Run><Run Foreground="#A1DAF7">&#x2B24;</Run>&#x2B24;<Run Foreground="#A1DAF7">&#x2B24;</Run>&#x2B24;&#x2B24;<Run Foreground="#A1DAF7">&#x2B24;</Run><Run Foreground="#56256B">&#x2B24;</Run><Run Foreground="#9F4191">&#x2B24;</Run>&#x2B24;&#x2B24;<Run Foreground="#9F4191">&#x2B24;</Run><LineBreak/>
 <Run Foreground="#9F4191">&#x2B24;&#x2B24;&#x2B24;</Run><Run Foreground="#56256B">&#x2B24;&#x2B24;</Run><Run Foreground="#9F4191">&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;</Run><Run Foreground="#56256B">&#x2B24;</Run><Run Foreground="#9F4191">&#x2B24;&#x2B24;&#x2B24;</Run><Run Foreground="#A1DAF7">&#x2B24;</Run><Run Foreground="#9F4191">&#x2B24;&#x2B24;&#x2B24;&#x2B24;</Run><Run Foreground="#56256B">&#x2B24;&#x2B24;</Run><Run Foreground="#9F4191">&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;</Run><LineBreak/>
 <Run Foreground="#56256B">&#x2B24;&#x2B24;</Run><Run Foreground="#9F4191">&#x2B24;</Run><Run Foreground="#56256B">&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;</Run><Run Foreground="#9F4191">&#x2B24;</Run><Run Foreground="#56256B">&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;</Run><Run Foreground="#9F4191">&#x2B24;</Run><Run Foreground="#56256B">&#x2B24;&#x2B24;&#x2B24;</Run><Run Foreground="#A1DAF7">&#x2B24;</Run><Run Foreground="#56256B">&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;</Run><Run Foreground="#9F4191">&#x2B24;</Run><Run Foreground="#56256B">&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;&#x2B24;</Run><Run Foreground="#9F4191">&#x2B24;</Run><Run Foreground="#56256B">&#x2B24;</Run><LineBreak/>
    </TextBlock>

    <Style x:Key="bigButton" TargetType="telerik:RadButton">
        <Setter Property="CornerRadius" Value="15"/>
        <Setter Property="Foreground" Value="{StaticResource sckbP}"></Setter>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="Background">
            <Setter.Value>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="White" Offset="0"/>
            <GradientStop Color="{StaticResource sckcLB}" Offset="0.5"/>
            <GradientStop Color="White" Offset="1"/>
        </LinearGradientBrush>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="xstatusOnLine" TargetType="StatusBarItem">
        <Style.Triggers>
            <Trigger Property="Content" Value="***   Offline   ***">
                <Setter Property="Background" Value="Red"/>
                <Setter Property="Foreground" Value="Yellow"/>
            </Trigger>
            <Trigger Property="Content" Value="--- Online ---">
                <Setter Property="Background" Value="White"/>
                <Setter Property="Foreground" Value="Green"/>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="styleAlarmBorder" TargetType="Border">
        <Setter Property="Background" Value="LightYellow"  />
        <Setter Property="TextBlock.FontSize" Value="30" />
        <Setter Property="TextBlock.FontWeight" Value="Bold" />
        <Setter Property="TextBlock.LineHeight" Value="30px" />
        <Setter Property="Padding" Value="20,20,20,20"  />
    </Style>

    <Style x:Key="styleTOProgessBar" TargetType="ProgressBar">
        <Setter Property="Background" Value="Blue" />
        <Setter Property="Height" Value="25" />
        <Setter Property="Maximum" Value="10" />
        <Setter Property="Minimum" Value="1" />
        <Setter Property="Margin" Value="100,5,100,5"   />
    </Style>
    
    <Style x:Key="styleTTOProgessBar" TargetType="telerik:RadProgressBar">
        <Setter Property="Background" Value="Blue" />
        <Setter Property="Height" Value="25" />
        <Setter Property="Maximum" Value="10" />
        <Setter Property="Minimum" Value="1" />
        <Setter Property="Margin" Value="100,5,100,5"   />
    </Style>
    
    <Style x:Key="sIssuedSubHeader" TargetType="{x:Type TextBlock}">
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="TextAlignment" Value="Center"/>
        <Setter Property="Background" Value="{StaticResource sckbLB}" />
        <Setter Property="Padding" Value="20,0,20,0" />
        <Setter Property="FontWeight" Value="Bold"/>
    </Style>

</ResourceDictionary>