123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- <Application x:Class="SCADA_DAQ.App"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:toolkit="http://schemas.xceed.com/wpf/xaml/toolkit"
- xmlns:wpf="clr-namespace:SCADA.CommonCtrl.WpfControl;assembly=SCADA.CommonCtrl"
- xmlns:wpffrm="clr-namespace:SCADA.CommonCtrl.WpfWindow;assembly=SCADA.CommonCtrl"
- xmlns:System="clr-namespace:System;assembly=mscorlib"
- xmlns:scadaui="clr-namespace:SCADA.CommonCtrl.SCADAUI;assembly=SCADA.CommonCtrl"
- Startup="Application_Startup"
- Exit="Application_Exit"
- SessionEnding="Application_SessionEnding">
- <Application.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="pack://application:,,,/SCADA.CommonCtrl;component/WpfControl/SmartGrid/Themes/SmartDataGridStyle.xaml" />
-
- <ResourceDictionary Source="pack://application:,,,/SCADA.CommonCtrl;component/Themes/Colors.xaml" />
- <ResourceDictionary Source="pack://application:,,,/SCADA.CommonCtrl;component/Themes/Brushes.xaml" />
- <ResourceDictionary Source="pack://application:,,,/SCADA.CommonCtrl;component/Themes/Fonts.xaml" />
- <ResourceDictionary Source="pack://application:,,,/SCADA_DAQ.Language;component/de-de.xaml" />
- <ResourceDictionary Source="pack://application:,,,/SCADA_DAQ.Language;component/en-us.xaml" />
- <ResourceDictionary Source="pack://application:,,,/SCADA_DAQ.Language;component/ja-jp.xaml" />
- <ResourceDictionary Source="pack://application:,,,/SCADA_DAQ.Language;component/ko-kr.xaml" />
- <ResourceDictionary Source="pack://application:,,,/SCADA_DAQ.Language;component/ru-ru.xaml" />
- <ResourceDictionary Source="pack://application:,,,/SCADA_DAQ.Language;component/th-th.xaml" />
- <ResourceDictionary Source="pack://application:,,,/SCADA_DAQ.Language;component/zh-tw.xaml" />
- <ResourceDictionary Source="pack://application:,,,/SCADA_DAQ.Language;component/zh-cn.xaml" />
- <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
- <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
- <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/Light.Blue.xaml" />
- </ResourceDictionary.MergedDictionaries>
- <SolidColorBrush x:Key="MenuIconBrush"
- Color="{DynamicResource MahApps.Color.Gray3}" />
- <FontFamily x:Key="DefaultFont">Microsoft YaHei UI</FontFamily>
- <System:Double x:Key="DefaultFontSize">14</System:Double>
- <FontWeight x:Key="DefaultFontWeight">Normal</FontWeight>
- <Style TargetType="DataGridCell"
- x:Key="ResultGridCellStyle">
- <Style.Triggers>
- <DataTrigger Binding="{Binding TestResult_Int}"
- Value="1">
- <Setter Property="Background"
- Value="{DynamicResource Background-Success1}" />
- <Setter Property="Foreground"
- Value="White" />
- </DataTrigger>
- <DataTrigger Binding="{Binding Path=TestResult_Int}"
- Value="2">
- <Setter Property="Background"
- Value="{DynamicResource Background-Danger1}" />
- <Setter Property="Foreground"
- Value="{DynamicResource Foreground-Danger}" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="BaseControl"
- TargetType="Control">
- <Setter Property="Foreground"
- Value="{DynamicResource Mahapps.Brushes.Text}" />
- <Setter Property="Background"
- Value="{DynamicResource MahApps.Brushes.ThemeBackground}" />
- </Style>
- <Style TargetType="Window"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="ScrollViewer"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type TextBox}"
- BasedOn="{StaticResource BaseControl}" />
-
- <Style TargetType="Label"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="GroupBox"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="ToolBar"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="CheckBox"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="ListView"
- BasedOn="{StaticResource BaseControl}" />
- <!--<Style TargetType="ComboBox"
- BasedOn="{DynamicResource MetroComboBox}" />-->
- <Style TargetType="ContextMenu"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="Button"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="Viewbox"
- BasedOn="{x:Null}" />
- <Style TargetType="{x:Type wpf:TitleBackground}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type wpf:WelComePage}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type toolkit:DateTimeUpDown}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type toolkit:TimeSpanUpDown}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type toolkit:LongUpDown}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type toolkit:IntegerUpDown}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type toolkit:DecimalUpDown}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type toolkit:DoubleUpDown}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type toolkit:WatermarkComboBox}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type wpf:AutoFilteredComboBox}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type wpf:MyTreeView}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type toolkit:CheckComboBox}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type toolkit:WatermarkPasswordBox}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type toolkit:SingleUpDown}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type toolkit:DateTimePicker}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type toolkit:TimePicker}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type toolkit:ButtonSpinner}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type toolkit:MultiLineTextEditor}"
- BasedOn="{StaticResource BaseControl}" />
- <!--<Style TargetType="{x:Type wpf:SmartGrid}"
- BasedOn="{StaticResource BaseControl}">
- <Setter Property="ColumnHeaderStyle"
- Value="{StaticResource BaseControl}" />
- <Setter Property="RowStyle"
- Value="{StaticResource BaseControl}" />
- <Setter Property="RowHeaderStyle">
- <Setter.Value>
- <Style TargetType="DataGridRowHeader"
- BasedOn="{StaticResource BaseControl}">
- <Setter Property="MinWidth"
- Value="32" />
- </Style>
- </Setter.Value>
- </Setter>
- </Style>-->
- <Style TargetType="{x:Type wpf:BaseUctFrm}">
- <Setter Property="Foreground"
- Value="{DynamicResource MahApps.Brushes.ThemeForeground}" />
- <Setter Property="Background"
- Value="{DynamicResource MahApps.Brushes.ThemeBackground}" />
- </Style>
- <Style TargetType="{x:Type wpf:ChildWindow}"
- BasedOn="{StaticResource BaseControl}">
- </Style>
- <Style TargetType="{x:Type wpf:AutoView}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type wpffrm:FrmInputForm}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type wpf:MyTabControl}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type TabControl}"
- BasedOn="{StaticResource BaseControl}"/>
-
- <Style TargetType="{x:Type TabItem}"
- BasedOn="{StaticResource BaseControl}"/>
-
- <Style TargetType="{x:Type wpf:CloseTabItem}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type ToolTip}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type StatusBar}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type wpffrm:WrapWindow}"
- BasedOn="{StaticResource BaseControl}" />
- <Style TargetType="{x:Type MenuItem}"
- BasedOn="{StaticResource BaseControl}">
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- </Style>
- <Style TargetType="{x:Type PasswordBox}"
- BasedOn="{StaticResource BaseControl}"/>
- <Style TargetType="{x:Type ComboBox}"
- BasedOn="{StaticResource BaseControl}"/>
- <Style TargetType="{x:Type wpf:Card}"
- BasedOn="{StaticResource BaseControl}"/>
-
- <Style TargetType="{x:Type scadaui:RegViewPanelGroup}"
- BasedOn="{StaticResource BaseControl}"/>
- <Style TargetType="{x:Type wpf:BaseUserControl}"
- BasedOn="{StaticResource BaseControl}"/>
- </ResourceDictionary>
- </Application.Resources>
- </Application>
|