2025-03-16 03:17:36 +08:00
|
|
|
<Application x:Class="Seyounth.Hyosung.App"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2025-04-07 23:25:45 +08:00
|
|
|
xmlns:ui="https://opensource.panuon.com/wpf-ui"
|
2025-03-16 03:17:36 +08:00
|
|
|
DispatcherUnhandledException="OnDispatcherUnhandledException"
|
|
|
|
Exit="OnExit"
|
|
|
|
Startup="OnStartup">
|
|
|
|
<Application.Resources>
|
2025-04-07 23:25:45 +08:00
|
|
|
<ResourceDictionary>
|
2025-03-16 03:17:36 +08:00
|
|
|
<ResourceDictionary.MergedDictionaries>
|
2025-04-07 23:25:45 +08:00
|
|
|
<ResourceDictionary>
|
|
|
|
<ui:MessageBoxXSettings x:Key="messageSetting">
|
|
|
|
<ui:MessageBoxXSettings.WindowXStyle>
|
|
|
|
<Style TargetType="ui:WindowX"
|
|
|
|
BasedOn="{StaticResource {x:Static ui:MessageBoxX.WindowXStyleKey}}">
|
|
|
|
<Setter Property="SizeToContent"
|
|
|
|
Value="Manual" />
|
|
|
|
<Setter Property="Width"
|
|
|
|
Value="400" />
|
|
|
|
<Setter Property="Height"
|
|
|
|
Value="200" />
|
|
|
|
<Setter Property="Background"
|
|
|
|
Value="{DynamicResource WindowBackground}" />
|
|
|
|
<Setter Property="Foreground"
|
|
|
|
Value="{DynamicResource BodyForeground}" />
|
|
|
|
</Style>
|
|
|
|
</ui:MessageBoxXSettings.WindowXStyle>
|
|
|
|
<ui:MessageBoxXSettings.ButtonStyle>
|
|
|
|
<Style TargetType="Button"
|
|
|
|
BasedOn="{StaticResource {x:Static ui:MessageBoxX.ButtonStyleKey}}">
|
|
|
|
<Setter Property="ui:ButtonHelper.CornerRadius"
|
|
|
|
Value="4" />
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="IsDefault"
|
|
|
|
Value="True">
|
|
|
|
<Setter Property="Foreground"
|
|
|
|
Value="#FFFFFF" />
|
|
|
|
<Setter Property="Background"
|
|
|
|
Value="#80BEE8" />
|
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
</ui:MessageBoxXSettings.ButtonStyle>
|
|
|
|
</ui:MessageBoxXSettings>
|
|
|
|
|
|
|
|
<ui:NoticeBoxSettings x:Key="noticeSetting"
|
|
|
|
Position="TopRight">
|
|
|
|
<ui:NoticeBoxSettings.NoticeBoxItemStyle>
|
|
|
|
<Style TargetType="ui:NoticeBoxItem"
|
|
|
|
BasedOn="{StaticResource {x:Static ui:NoticeBox.NoticeBoxItemStyleKey}}">
|
|
|
|
<Setter Property="Background"
|
|
|
|
Value="{DynamicResource WindowBackground}" />
|
|
|
|
<Setter Property="BorderBrush"
|
|
|
|
Value="#4E4E4E" />
|
|
|
|
<Setter Property="Foreground"
|
|
|
|
Value="{DynamicResource BodyForeground}" />
|
|
|
|
</Style>
|
|
|
|
</ui:NoticeBoxSettings.NoticeBoxItemStyle>
|
|
|
|
</ui:NoticeBoxSettings>
|
|
|
|
|
|
|
|
<ui:PendingBoxSettings x:Key="pendingSetting">
|
|
|
|
<ui:PendingBoxSettings.WindowStyle>
|
|
|
|
<Style BasedOn="{StaticResource {x:Static ui:PendingBox.WindowStyleKey}}"
|
|
|
|
TargetType="Window">
|
|
|
|
<Setter Property="SizeToContent"
|
|
|
|
Value="Manual" />
|
|
|
|
<Setter Property="Width"
|
|
|
|
Value="400" />
|
|
|
|
<Setter Property="Height"
|
|
|
|
Value="200" />
|
|
|
|
<Setter Property="Background"
|
|
|
|
Value="{DynamicResource WindowBackground}" />
|
|
|
|
<Setter Property="Foreground"
|
|
|
|
Value="{DynamicResource BodyForeground}" />
|
|
|
|
</Style>
|
|
|
|
</ui:PendingBoxSettings.WindowStyle>
|
|
|
|
<ui:PendingBoxSettings.SpinStyle>
|
|
|
|
<Style BasedOn="{StaticResource {x:Static ui:PendingBox.SpinStyleKey}}"
|
|
|
|
TargetType="ui:Spin">
|
|
|
|
<Setter Property="SpinStyle"
|
|
|
|
Value="Ring2" />
|
|
|
|
<Setter Property="GlyphBrush"
|
|
|
|
Value="#6CBCEA" />
|
|
|
|
</Style>
|
|
|
|
</ui:PendingBoxSettings.SpinStyle>
|
|
|
|
<ui:PendingBoxSettings.CancelButtonStyle>
|
|
|
|
<!--Attention : CancelButtonStyle in PendingBox does not support Helpers in PanuonUI-->
|
|
|
|
<Style BasedOn="{StaticResource {x:Static ui:PendingBox.CancelButtonStyleKey}}"
|
|
|
|
TargetType="Button">
|
|
|
|
<Setter Property="Background"
|
|
|
|
Value="#6CBCEA" />
|
|
|
|
<Setter Property="Foreground"
|
|
|
|
Value="White" />
|
|
|
|
<Setter Property="Height"
|
|
|
|
Value="30" />
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="IsPressed"
|
|
|
|
Value="True">
|
|
|
|
<Setter Property="Background"
|
|
|
|
Value="#6CABEA" />
|
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
</ui:PendingBoxSettings.CancelButtonStyle>
|
|
|
|
</ui:PendingBoxSettings>
|
|
|
|
|
|
|
|
<ui:ToastSettings x:Key="toastSetting"
|
|
|
|
Spacing="25">
|
|
|
|
<ui:ToastSettings.LabelStyle>
|
|
|
|
<Style TargetType="Label"
|
|
|
|
BasedOn="{StaticResource {x:Static ui:Toast.LabelStyleKey}}">
|
|
|
|
<Setter Property="Background"
|
|
|
|
Value="{DynamicResource ToastBackground}" />
|
|
|
|
<Setter Property="Foreground"
|
|
|
|
Value="{DynamicResource ToastForeground}" />
|
|
|
|
</Style>
|
|
|
|
</ui:ToastSettings.LabelStyle>
|
|
|
|
</ui:ToastSettings>
|
|
|
|
|
|
|
|
<ui:GlobalSettings x:Key="settings">
|
|
|
|
<ui:GlobalSettings.Themes>
|
|
|
|
<ui:ApplicationTheme Key="Light"
|
|
|
|
ResourceDictionary="/Samples;component/Themes/Light.xaml" />
|
|
|
|
<ui:ApplicationTheme Key="Dark"
|
|
|
|
ResourceDictionary="/Samples;component/Themes/Dark.xaml" />
|
|
|
|
</ui:GlobalSettings.Themes>
|
|
|
|
</ui:GlobalSettings>
|
|
|
|
</ResourceDictionary>
|
|
|
|
|
|
|
|
<ui:StyleDictionary Includes="All" />
|
|
|
|
|
2025-03-16 03:17:36 +08:00
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
</ResourceDictionary>
|
|
|
|
</Application.Resources>
|
|
|
|
</Application>
|