<Application
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="App" StartupUri="TermEPowerStats.xaml">
	<Application.Resources>
		<ImageBrush x:Key="BrushExit" ImageSource="Graphics/delete.png"/>
		<!-- Resources scoped at the Application level should be defined here. -->
		<Style x:Key="TitleBarButton" TargetType="{x:Type Button}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualStateGroup.Transitions>
										<VisualTransition GeneratedDuration="0" To="MouseOver"/>
										<VisualTransition GeneratedDuration="0" To="Disabled"/>
										<VisualTransition GeneratedDuration="0" To="Normal"/>
									</VisualStateGroup.Transitions>
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver">
										<Storyboard>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Offset)" Storyboard.TargetName="ButtonFace">
												<EasingDoubleKeyFrame KeyTime="0" Value="0.233"/>
												<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0.841"/>
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Offset)" Storyboard.TargetName="buttonHole">
												<EasingDoubleKeyFrame KeyTime="0" Value="0.836"/>
												<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0.832"/>
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Offset)" Storyboard.TargetName="buttonHole">
												<EasingDoubleKeyFrame KeyTime="0" Value="0.849"/>
												<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0.966"/>
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Offset)" Storyboard.TargetName="buttonHole">
												<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
												<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0.94"/>
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="ButtonFace">
												<EasingColorKeyFrame KeyTime="0" Value="White"/>
												<EasingColorKeyFrame KeyTime="0:0:0.2" Value="White"/>
											</ColorAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Offset)" Storyboard.TargetName="ButtonFace">
												<EasingDoubleKeyFrame KeyTime="0" Value="0.233"/>
												<EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0.746"/>
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Disabled">
										<Storyboard>
											<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="ButtonFace">
												<EasingColorKeyFrame KeyTime="0" Value="#FF333333"/>
											</ColorAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Ellipse x:Name="buttonHole" Stroke="Black" StrokeThickness="0" Width="25" Height="25" Margin="-1.5,-1.125,-1.5,-1.875">
								<Ellipse.Fill>
									<RadialGradientBrush>
										<GradientStop Color="Black" Offset="0.849"/>
										<GradientStop Color="#FF4B4B4B" Offset="1"/>
										<GradientStop Color="White" Offset="0.836"/>
									</RadialGradientBrush>
								</Ellipse.Fill>
							</Ellipse>
							<Ellipse x:Name="ButtonFace" Stroke="#FF2B2B2B" StrokeThickness="0.25" Margin="0,0.375,0,-0.375" RenderTransformOrigin="0.5,0.5">
								<Ellipse.RenderTransform>
									<TransformGroup>
										<ScaleTransform/>
										<SkewTransform/>
										<RotateTransform/>
										<TranslateTransform/>
									</TransformGroup>
								</Ellipse.RenderTransform>
								<Ellipse.Fill>
									<RadialGradientBrush>
										<GradientStop Color="Black" Offset="1"/>
										<GradientStop Color="White"/>
										<GradientStop Color="#FFC3C3C3" Offset="0.233"/>
									</RadialGradientBrush>
								</Ellipse.Fill>
							</Ellipse>
							<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content=""/>
							<Rectangle Fill="{DynamicResource BrushExit}" Margin="1.208,2.5,1.125,0" RadiusY="7.786" RadiusX="7.786"/>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsFocused" Value="True"/>
							<Trigger Property="IsDefaulted" Value="True"/>
							<Trigger Property="IsMouseOver" Value="True"/>
							<Trigger Property="IsPressed" Value="True"/>
							<Trigger Property="IsEnabled" Value="False"/>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<ImageBrush x:Key="iOPSGlobe" ImageSource="Graphics/Earth1r4-48x48-BLK1.gif"/>
	</Application.Resources>
</Application>