2025-07-19 09:24:35 +08:00
|
|
|
<Application
|
2025-09-04 14:46:50 +08:00
|
|
|
x:Class="DMS.WPF.App"
|
2025-07-19 09:24:35 +08:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2025-09-14 16:16:10 +08:00
|
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
|
|
|
xmlns:triggers="clr-namespace:DMS.Core.Models.Triggers;assembly=DMS.Core"
|
|
|
|
|
xmlns:converters="clr-namespace:DMS.WPF.Converters"
|
|
|
|
|
xmlns:localConverters="clr-namespace:DMS.WPF.Converters" <!-- 引入本地转换器命名空间 -->
|
2025-07-19 09:24:35 +08:00
|
|
|
|
|
|
|
|
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern">
|
2025-07-18 22:21:16 +08:00
|
|
|
<Application.Resources>
|
2025-07-19 09:24:35 +08:00
|
|
|
<ResourceDictionary>
|
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
|
|
|
<ui:ThemeResources />
|
|
|
|
|
<ui:XamlControlsResources />
|
|
|
|
|
<ResourceDictionary Source="Resources/DevicesItemTemplateDictionary.xaml" />
|
|
|
|
|
|
|
|
|
|
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml" />
|
|
|
|
|
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml" />
|
|
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
|
|
2025-09-14 16:16:10 +08:00
|
|
|
<!-- Converters -->
|
|
|
|
|
<converters:EnumToVisibilityConverter x:Key="EnumToVisibilityConverter"/>
|
|
|
|
|
<converters:NullableTimeSpanToSecondsConverter x:Key="NullableTimeSpanToSecondsConverter"/>
|
|
|
|
|
<localConverters:BooleanToBrushConverter x:Key="BooleanToBrushConverter"/> <!-- 确保这个转换器也被引用 -->
|
|
|
|
|
|
|
|
|
|
<!-- 添加缺失的转换器 -->
|
|
|
|
|
<localConverters:EnumToVisibilityConverter x:Key="LocalEnumToVisibilityConverter"/>
|
|
|
|
|
|
|
|
|
|
<!-- Enum Values for ComboBoxes -->
|
|
|
|
|
<ObjectDataProvider x:Key="ConditionTypeEnum" ObjectType="{x:Type sys:Enum}" MethodName="GetValues">
|
|
|
|
|
<ObjectDataProvider.MethodParameters>
|
|
|
|
|
<x:Type TypeName="triggers:ConditionType"/>
|
|
|
|
|
</ObjectDataProvider.MethodParameters>
|
|
|
|
|
</ObjectDataProvider>
|
|
|
|
|
|
|
|
|
|
<ObjectDataProvider x:Key="ActionTypeEnum" ObjectType="{x:Type sys:Enum}" MethodName="GetValues">
|
|
|
|
|
<ObjectDataProvider.MethodParameters>
|
|
|
|
|
<x:Type TypeName="triggers:ActionType"/>
|
|
|
|
|
</ObjectDataProvider.MethodParameters>
|
|
|
|
|
</ObjectDataProvider>
|
|
|
|
|
|
2025-07-19 09:24:35 +08:00
|
|
|
</ResourceDictionary>
|
|
|
|
|
|
2025-07-18 22:21:16 +08:00
|
|
|
</Application.Resources>
|
2025-07-19 09:24:35 +08:00
|
|
|
</Application>
|