<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns:pw="https://opensource.panuon.com/wpf"
|
xmlns:pu="https://opensource.panuon.com/wpf-ui"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:puconfig="clr-namespace:Panuon.WPF.UI.Configurations;assembly=Panuon.WPF.UI">
|
|
<pu:MessageBoxXSettings x:Key="MsgBoxWarn"
|
InteropOwnersMask="True"
|
InverseButtonsSequence="False">
|
<pu:MessageBoxXSettings.WindowXStyle>
|
<Style TargetType="pu:WindowX" BasedOn="{StaticResource {x:Static pu:MessageBoxX.WindowXStyleKey}}">
|
<Setter Property="pu:WindowXCaption.Background" Value="{StaticResource WarningColor}" />
|
<Setter Property="pu:WindowXCaption.Foreground" Value="{StaticResource WarningColorContract}" />
|
</Style>
|
</pu:MessageBoxXSettings.WindowXStyle>
|
|
<pu:MessageBoxXSettings.ButtonStyle>
|
<Style TargetType="Button" BasedOn="{StaticResource {x:Static pu:MessageBoxX.ButtonStyleKey}}">
|
|
<Style.Triggers>
|
<Trigger Property="Tag" Value="OK">
|
<Setter Property="Foreground" Value="{StaticResource WarningColorContract}" />
|
<Setter Property="Background" Value="{StaticResource WarningColor}" />
|
</Trigger>
|
|
<Trigger Property="Tag" Value="Cancel">
|
<Setter Property="Background" Value="{x:Null}" />
|
<Setter Property="Foreground" Value="Gray" />
|
<Setter Property="Cursor" Value="Hand" />
|
<Setter Property="ContentTemplate">
|
<Setter.Value>
|
<DataTemplate>
|
<TextBlock Text="{Binding}" TextDecorations="Underline" />
|
</DataTemplate>
|
</Setter.Value>
|
</Setter>
|
</Trigger>
|
</Style.Triggers>
|
</Style>
|
</pu:MessageBoxXSettings.ButtonStyle>
|
</pu:MessageBoxXSettings>
|
|
<pu:MessageBoxXSettings x:Key="MsgBoxError"
|
InteropOwnersMask="True"
|
InverseButtonsSequence="False">
|
<pu:MessageBoxXSettings.WindowXStyle>
|
<Style TargetType="pu:WindowX" BasedOn="{StaticResource {x:Static pu:MessageBoxX.WindowXStyleKey}}">
|
<Setter Property="pu:WindowXCaption.Background" Value="{StaticResource DangerColor}" />
|
<Setter Property="pu:WindowXCaption.Foreground" Value="{StaticResource DangerColorContrast}" />
|
</Style>
|
</pu:MessageBoxXSettings.WindowXStyle>
|
|
<pu:MessageBoxXSettings.ButtonStyle>
|
<Style TargetType="Button" BasedOn="{StaticResource {x:Static pu:MessageBoxX.ButtonStyleKey}}">
|
|
<Style.Triggers>
|
<Trigger Property="Tag" Value="OK">
|
<Setter Property="Foreground" Value="{StaticResource DangerColorContrast}" />
|
<Setter Property="Background" Value="{StaticResource DangerColor}" />
|
</Trigger>
|
|
<Trigger Property="Tag" Value="Cancel">
|
<Setter Property="Background" Value="{x:Null}" />
|
<Setter Property="Foreground" Value="Gray" />
|
<Setter Property="Cursor" Value="Hand" />
|
<Setter Property="ContentTemplate">
|
<Setter.Value>
|
<DataTemplate>
|
<TextBlock Text="{Binding}" TextDecorations="Underline" />
|
</DataTemplate>
|
</Setter.Value>
|
</Setter>
|
</Trigger>
|
</Style.Triggers>
|
</Style>
|
</pu:MessageBoxXSettings.ButtonStyle>
|
</pu:MessageBoxXSettings>
|
|
<pu:MessageBoxXSettings x:Key="MsgBoxInfo"
|
InteropOwnersMask="True"
|
InverseButtonsSequence="False">
|
<pu:MessageBoxXSettings.WindowXStyle>
|
<Style TargetType="pu:WindowX" BasedOn="{StaticResource {x:Static pu:MessageBoxX.WindowXStyleKey}}">
|
<Setter Property="pu:WindowXCaption.Background" Value="{StaticResource PrimaryColor}" />
|
<Setter Property="pu:WindowXCaption.Foreground" Value="{StaticResource PrimaryColorContract}" />
|
</Style>
|
</pu:MessageBoxXSettings.WindowXStyle>
|
|
<pu:MessageBoxXSettings.ButtonStyle>
|
<Style TargetType="Button" BasedOn="{StaticResource {x:Static pu:MessageBoxX.ButtonStyleKey}}">
|
|
<Style.Triggers>
|
<Trigger Property="Tag" Value="OK">
|
<Setter Property="Foreground" Value="{StaticResource PrimaryColorContract}" />
|
<Setter Property="Background" Value="{StaticResource PrimaryColor}" />
|
</Trigger>
|
|
<Trigger Property="Tag" Value="Cancel">
|
<Setter Property="Background" Value="{x:Null}" />
|
<Setter Property="Foreground" Value="Gray" />
|
<Setter Property="Cursor" Value="Hand" />
|
<Setter Property="ContentTemplate">
|
<Setter.Value>
|
<DataTemplate>
|
<TextBlock Text="{Binding}" TextDecorations="Underline" />
|
</DataTemplate>
|
</Setter.Value>
|
</Setter>
|
</Trigger>
|
</Style.Triggers>
|
</Style>
|
</pu:MessageBoxXSettings.ButtonStyle>
|
</pu:MessageBoxXSettings>
|
|
<pu:ToastSettings x:Key="toastSuccess" Spacing="25">
|
<pu:ToastSettings.LabelStyle>
|
<Style TargetType="Label" BasedOn="{StaticResource {x:Static pu:Toast.LabelStyleKey}}">
|
<Setter Property="Background" Value="{StaticResource SuccessColor}" />
|
<Setter Property="Foreground" Value="{StaticResource SuccessColorContrast}" />
|
</Style>
|
</pu:ToastSettings.LabelStyle>
|
</pu:ToastSettings>
|
|
<pu:ToastSettings x:Key="toastWarning" Spacing="25">
|
<pu:ToastSettings.LabelStyle>
|
<Style TargetType="Label" BasedOn="{StaticResource {x:Static pu:Toast.LabelStyleKey}}">
|
<Setter Property="Background" Value="{StaticResource WarningColor}" />
|
<Setter Property="Foreground" Value="{StaticResource SuccessColorContrast}" />
|
</Style>
|
</pu:ToastSettings.LabelStyle>
|
</pu:ToastSettings>
|
|
<pu:ToastSettings x:Key="toastError" Spacing="25">
|
<pu:ToastSettings.LabelStyle>
|
<Style TargetType="Label" BasedOn="{StaticResource {x:Static pu:Toast.LabelStyleKey}}">
|
<Setter Property="Background" Value="{StaticResource DangerColor}" />
|
<Setter Property="Foreground" Value="{StaticResource DangerColorContrast}" />
|
</Style>
|
</pu:ToastSettings.LabelStyle>
|
</pu:ToastSettings>
|
</ResourceDictionary>
|