| | |
| | | xmlns:sys="clr-namespace:System;assembly=mscorlib" |
| | | xmlns:pw="https://opensource.panuon.com/wpf" |
| | | xmlns:pu="https://opensource.panuon.com/wpf-ui" |
| | | xmlns:hc="clr-namespace:HMI.Core;assembly=HMI.Core" |
| | | xmlns:uic="clr-namespace:HMI.UI.Converter;assembly=HMI.UI" |
| | | xmlns:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI"> |
| | | <ResourceDictionary.MergedDictionaries> |
| | |
| | | <pu:StyleDictionary Includes="PasswordBox,TextBox,ComboBox,Button,DataGrid,TreeView,Menu" /> |
| | | <ResourceDictionary Source="/HMI.UI;component/Resources/Font/Font.xaml"/> |
| | | </ResourceDictionary.MergedDictionaries> |
| | | |
| | | <hc:LangConverter x:Key="lc"/> |
| | | <sys:Double x:Key="TitleFontSize">20</sys:Double> |
| | | <sys:Double x:Key="ContentFontSize">16</sys:Double> |
| | | <sys:Double x:Key="ContentFontSize2">14</sys:Double> |
| | |
| | | <Setter Property="Content" Value="{DynamicResource App.Add}"/> |
| | | </Style> |
| | | |
| | | <Style x:Key="EditBtn" TargetType="Button" BasedOn="{StaticResource PrimaryButton}"> |
| | | <Setter Property="pu:ButtonHelper.Icon" Value=""/> |
| | | <Setter Property="Content" Value="{DynamicResource App.Edit}"/> |
| | | </Style> |
| | | |
| | | <Style x:Key="RfhBtn" TargetType="Button" BasedOn="{StaticResource PrimaryButton}"> |
| | | <Setter Property="pu:ButtonHelper.Icon" Value=""/> |
| | | <Setter Property="Content" Value="{DynamicResource App.Refresh}"/> |
| | |
| | | |
| | | <Style x:Key="DefaultDataGrid" TargetType="DataGrid" BasedOn="{StaticResource {x:Static pu:StyleKeys.DataGridStyle}}"> |
| | | <Style.Resources> |
| | | |
| | | <Style TargetType="DataGridCell" |
| | | BasedOn="{StaticResource {x:Static pu:StyleKeys.DataGridCellStyle}}"> |
| | | <Setter Property="Background" Value="Transparent"/> |
| | |
| | | <Setter Property="VerticalAlignment" Value="Center"/> |
| | | <Setter Property="Padding" Value="5"/> |
| | | </Style>--> |
| | | |
| | | <Style TargetType="DataGridColumnHeader" |
| | | BasedOn="{StaticResource {x:Static pu:StyleKeys.DataGridColumnHeaderStyle}}"> |
| | | <Setter Property="Padding" Value="10"/> |
| | | <Setter Property="BorderThickness" Value="0"/> |
| | | </Style> |
| | | |
| | | </Style.Resources> |
| | | <Setter Property="pu:DataGridHelper.ColumnHeaderPadding" Value="0"/> |
| | | <Setter Property="RowHeight" Value="30"/> |
| | |
| | | <Setter Property="SelectionMode" Value="Single"/> |
| | | <Setter Property="RowStyle" Value="{StaticResource DefaultDataGridRow}"/> |
| | | <Setter Property="AlternationCount" Value="2"></Setter> |
| | | <Setter Property="Foreground" Value="#878787"/> |
| | | <Setter Property="Foreground" Value="#3a3a3a"/> |
| | | <Setter Property="HorizontalGridLinesBrush" Value="{StaticResource TableBoarder}"/> |
| | | <Setter Property="VerticalGridLinesBrush" Value="{StaticResource TableBoarder}"/> |
| | | <Setter Property="BorderBrush" Value="{StaticResource TableBoarder}" /> |
| | |
| | | <Setter Property="pu:DataGridHelper.RowSelectedBackground" Value="{StaticResource PrimaryColor}"/> |
| | | <Setter Property="pu:DataGridHelper.RowSelectedForeground" Value="White"/> |
| | | <Setter Property="pu:DataGridHelper.RowHeaderBorderThickness" Value="10,0,0,0"/> |
| | | <Setter Property="pu:DataGridHelper.RowHeaderBackground" Value="Red"/> |
| | | <Setter Property="pu:DataGridHelper.ColumnHeaderBorderThickness" Value="0"/> |
| | | <Setter Property="pu:DataGridHelper.ColumnHeaderPadding" Value="0"/> |
| | | </Style> |
| | |
| | | <Setter Property="pu:WindowXCaption.Buttons" Value="Close"/> |
| | | <Setter Property="pu:WindowXModalDialog.Buttons" Value="OKCancel"/> |
| | | <Setter Property="pu:WindowXModalDialog.CancelButtonContent" |
| | | Value="{Binding Converter={StaticResource lc},ConverterParameter='App.Cancel'}"/> |
| | | Value="{DynamicResource App.Cancel}"/> |
| | | <Setter Property="pu:WindowXModalDialog.OKButtonContent" |
| | | Value="{Binding Converter={StaticResource lc},ConverterParameter='App.Save'}"/> |
| | | Value="{DynamicResource App.Save}"/> |
| | | <Setter Property="pu:WindowXModalDialog.ButtonPanelMargin" Value="0,30,10,10"/> |
| | | </Style> |
| | | |
| | | <Popup x:Key="testPop" Placement="Relative" StaysOpen="True" Width="1920" Height="1080"> |
| | | <Rectangle x:Name="RectMask" |
| | | Fill="Red" |
| | | Opacity="0" |
| | | Visibility="Visible" /> |
| | | </Popup> |
| | | </ResourceDictionary> |