<Application xmlns="https://github.com/avaloniaui"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:dialoghostavalonia="using:DialogHostAvalonia"
			 xmlns:local="using:Progrart"
			 x:Class="Progrart.App"
			 RequestedThemeVariant="Default">
	<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
	<Application.Resources>
		<ResourceDictionary>

			<ControlTheme x:Key="{x:Type RadioButton}" TargetType="RadioButton">
				<Setter Property="Background" Value="{DynamicResource RadioButtonBackground}" />
				<Setter Property="Foreground" Value="{DynamicResource RadioButtonForeground}" />
				<Setter Property="BorderBrush" Value="{DynamicResource RadioButtonBorderBrush}" />
				<Setter Property="CornerRadius" Value="{DynamicResource ControlCornerRadius}" />
				<Setter Property="Padding" Value="8,2" />
				<Setter Property="HorizontalAlignment" Value="Left" />
				<Setter Property="VerticalAlignment" Value="Center" />
				<Setter Property="HorizontalContentAlignment" Value="Left" />
				<Setter Property="VerticalContentAlignment" Value="Center" />
				<Setter Property="Template">
					<ControlTemplate TargetType="RadioButton">
						<Border
						Name="RootBorder"
						Background="{TemplateBinding Background}"
						BorderBrush="{TemplateBinding BorderBrush}"
						BorderThickness="{TemplateBinding BorderThickness}"
						CornerRadius="{TemplateBinding CornerRadius}">
							<Grid ColumnDefinitions="*">
								<Grid Height="{DynamicResource RadioButtonMinHeight}" VerticalAlignment="Top">

									<Border
									Name="OuterBorder"
									UseLayoutRounding="False" />

									<Border
									Name="CheckOuterBorder"
									Opacity="0"
									UseLayoutRounding="False" />

									<Border
									CornerRadius="12"
									Name="CheckGlyph"

									Background="#2288EE"
									Opacity="0"
									/>
								</Grid>

								<ContentPresenter
								Name="PART_ContentPresenter"
								Margin="{TemplateBinding Padding}"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
								Content="{TemplateBinding Content}"
								ContentTemplate="{TemplateBinding ContentTemplate}"
								Foreground="{TemplateBinding Foreground}" />
							</Grid>
						</Border>
					</ControlTemplate>
				</Setter>

				<Style Selector="^ /template/ ContentPresenter#PART_ContentPresenter">
					<Setter Property="RecognizesAccessKey" Value="True" />
				</Style>

				<!--  PointerOver State  -->
				<Style Selector="^:pointerover /template/ ContentPresenter#PART_ContentPresenter">
					<Setter Property="Foreground" Value="{DynamicResource RadioButtonForegroundPointerOver}" />
				</Style>

				<Style Selector="^:pointerover /template/ Border#RootBorder">
					<Setter Property="Background" Value="{DynamicResource RadioButtonBackgroundPointerOver}" />
					<Setter Property="BorderBrush" Value="{DynamicResource RadioButtonBorderBrushPointerOver}" />
				</Style>

				<Style Selector="^:pointerover /template/ Border#OuterBorder">
				</Style>

				<Style Selector="^:pointerover /template/ Border#CheckOuterBorder">
<!--					<Setter Property="Stroke" Value="{DynamicResource RadioButtonOuterBorderCheckedStrokePointerOver}" />
					<Setter Property="Fill" Value="{DynamicResource RadioButtonOuterBorderCheckedFillPointerOver}" />-->
				</Style>

				<Style Selector="^:pointerover /template/ Border#CheckGlyph">
					<Setter Property="Background" Value="#3090FF" />
				</Style>


				<!--  Pressed State  -->
				<Style Selector="^:pressed /template/ ContentPresenter#PART_ContentPresenter">
					<Setter Property="Foreground" Value="{DynamicResource RadioButtonForegroundPressed}" />
				</Style>

				<Style Selector="^:pressed /template/ Border#RootBorder">
					<Setter Property="Background" Value="{DynamicResource RadioButtonBackgroundPressed}" />
					<Setter Property="BorderBrush" Value="{DynamicResource RadioButtonBorderBrushPressed}" />
				</Style>

				<Style Selector="^:pressed /template/ Border#OuterBorder">
<!--					<Setter Property="Stroke" Value="{DynamicResource RadioButtonOuterBorderStrokePressed}" />
					<Setter Property="Fill" Value="{DynamicResource RadioButtonOuterBorderFillPressed}" />-->
				</Style>

				<Style Selector="^:pressed /template/ Border#CheckOuterBorder">
					<!--<Setter Property="Stroke" Value="{DynamicResource RadioButtonOuterBorderCheckedStrokePressed}" />
					<Setter Property="Fill" Value="{DynamicResource RadioButtonOuterBorderCheckedFillPressed}" />-->
				</Style>

				<Style Selector="^:pressed /template/ Border#CheckGlyph">
					<Setter Property="Background" Value="#1070D0" />
				</Style>


				<!--  Disabled State  -->
				<Style Selector="^:disabled /template/ ContentPresenter#PART_ContentPresenter">
					<Setter Property="Foreground" Value="{DynamicResource RadioButtonForegroundDisabled}" />
				</Style>

				<Style Selector="^:disabled /template/ Border#RootBorder">
					<Setter Property="Background" Value="{DynamicResource RadioButtonBackgroundDisabled}" />
					<Setter Property="BorderBrush" Value="{DynamicResource RadioButtonBorderBrushDisabled}" />
				</Style>

				<Style Selector="^:disabled /template/ Border#OuterBorder">
				</Style>

				<Style Selector="^:disabled /template/ Border#CheckOuterBorder">
				</Style>

				<Style Selector="^:disabled /template/ Border#CheckGlyph">
					<Setter Property="Background" Value="#2050A0" />
				</Style>


				<!--  Checked State  -->
				<Style Selector="^:checked /template/ Border#CheckGlyph">
					<Setter Property="Opacity" Value="1" />
				</Style>

				<Style Selector="^:checked /template/ Border#OuterBorder">
					<Setter Property="Opacity" Value="0" />
				</Style>

				<Style Selector="^:checked /template/ Border#CheckOuterBorder">
					<Setter Property="Opacity" Value="1" />
				</Style>
			</ControlTheme>
		</ResourceDictionary>
	</Application.Resources>
	<Application.Styles>
		<FluentTheme/>
		<!--<DevolutionsDevExpressTheme />-->
		<!--<DevolutionsMacOsTheme/>-->
		<StyleInclude Source="avares://AvaloniaEdit/Themes/Fluent/AvaloniaEdit.xaml" />
		<dialoghostavalonia:DialogHostStyles/>
	</Application.Styles>
</Application>