Browse Source

basetheme

main
hulei 3 weeks ago
parent
commit
10af2696b3
34 changed files with 2353 additions and 0 deletions
  1. 5
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Animations/NoneAnimation.xaml
  2. 19
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/CommonResources.xaml
  3. 57
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/Button.xaml
  4. 63
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/CheckBox.xaml
  5. 378
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/Combobox.xaml
  6. 504
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/DataGrid.xaml
  7. 9
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/FocusAdorner.xaml
  8. 19
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/GroupBox.xaml
  9. 13
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/HotKey.xaml
  10. 27
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/Lable.xaml
  11. 68
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/ListBox.xaml
  12. 68
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/PasswordBox.xaml
  13. 55
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/RadioButton.xaml
  14. 308
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/ScrollBar.xaml
  15. 9
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/TextBlock.xaml
  16. 91
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/TextBox.xaml
  17. 27
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/TipAdorner.xaml
  18. 33
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/TreeView.xaml
  19. BIN
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Images/MainICO.png
  20. 5
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Page/LoginPage_DefaultControlTemplate.xaml
  21. 106
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/BrushDictionary.xaml
  22. 58
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/ButtonDictionary.xaml
  23. 44
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/CheckBoxDictionary.xaml
  24. 72
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/ComboboxDictionary.xaml
  25. 8
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/DataGridDictionary.xaml
  26. 13
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/GroupBoxDictionary.xaml
  27. 4
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/Image.xaml
  28. 4
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/LableDictionary.xaml
  29. 17
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/ListBoxDictionary.xaml
  30. 31
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/PasswordBoxDictionary.xaml
  31. 47
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/RadioButtonDictionary.xaml
  32. 151
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/ScrollBarDictionary.xaml
  33. 32
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/TextBoxDictionary.xaml
  34. 8
    0
      ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/TreeViewDictionary.xaml

+ 5
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Animations/NoneAnimation.xaml View File

@@ -0,0 +1,5 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+    
4
+    
5
+</ResourceDictionary>

+ 19
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/CommonResources.xaml View File

@@ -0,0 +1,19 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
2
+    <ResourceDictionary.MergedDictionaries>
3
+        <ResourceDictionary Source="Controls/Button.xaml" />
4
+        <ResourceDictionary Source="Controls/CheckBox.xaml" />
5
+        <ResourceDictionary Source="Controls/Combobox.xaml" />
6
+        <ResourceDictionary Source="Controls/DataGrid.xaml" />
7
+        <ResourceDictionary Source="Controls/FocusAdorner.xaml" />
8
+        <ResourceDictionary Source="Controls/GroupBox.xaml" />
9
+        <ResourceDictionary Source="Controls/Lable.xaml" />
10
+        <ResourceDictionary Source="Controls/ListBox.xaml" />
11
+        <ResourceDictionary Source="Controls/PasswordBox.xaml" />
12
+        <ResourceDictionary Source="Controls/RadioButton.xaml" />
13
+        <ResourceDictionary Source="Controls/ScrollBar.xaml" />
14
+        <ResourceDictionary Source="Controls/TextBox.xaml" />
15
+        <ResourceDictionary Source="Controls/TipAdorner.xaml" />
16
+        <ResourceDictionary Source="Controls/TreeView.xaml" />
17
+        <ResourceDictionary Source="Resources/Image.xaml" />
18
+    </ResourceDictionary.MergedDictionaries>
19
+</ResourceDictionary>

+ 57
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/Button.xaml View File

@@ -0,0 +1,57 @@
1
+<ResourceDictionary  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
3
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
+                    xmlns:dhcc="http://www.dhcc.com.cn">
5
+
6
+    <Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
7
+        <Setter Property="dhcc:FocusManager.FocusHandled" Value="{x:Static dhcc:ButtonHelper.ButtonFocusHandled}" />
8
+        <Setter Property="dhcc:FocusManager.IsInternalKeyboardControlling" Value="True" />
9
+        <Setter Property="dhcc:FocusManagerExt.IsFocusAdorner" Value="True" />
10
+        <Setter Property="HorizontalAlignment" Value="{DynamicResource Button_Normal_HorizontalAlignment}" />
11
+        <Setter Property="VerticalAlignment" Value="{DynamicResource Button_Normal_VerticalAlignment}" />
12
+        <Setter Property="Margin" Value="{DynamicResource Button_Normal_Margin}" />
13
+        <Setter Property="Height" Value="{DynamicResource Button_Normal_Height}" />
14
+        <Setter Property="Width" Value="{DynamicResource Button_Normal_Width}" />
15
+        <Setter Property="SnapsToDevicePixels" Value="true"/>
16
+        <Setter Property="OverridesDefaultStyle" Value="true"/>
17
+        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
18
+        <Setter Property="Background" Value="{DynamicResource Button_Normal_Background}"/>
19
+        <Setter Property="BorderBrush" Value="{DynamicResource Button_Normal_BorderBrush}"/>
20
+        <Setter Property="BorderThickness" Value="{DynamicResource Button_Normal_BorderThickness}"/>
21
+        <Setter Property="Template">
22
+            <Setter.Value>
23
+                <ControlTemplate TargetType="Button">
24
+                    <Border x:Name="Border" 
25
+                            CornerRadius="{DynamicResource Button_Normal_CornerRadius}"  
26
+                            BorderThickness="{TemplateBinding BorderThickness}" 
27
+                            Background="{TemplateBinding  Background}" 
28
+                            BorderBrush="{TemplateBinding BorderBrush}">
29
+                        <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" VerticalAlignment="Center">
30
+                            <ContentPresenter RecognizesAccessKey="True"/>
31
+                        </StackPanel>
32
+                    </Border>
33
+                    <ControlTemplate.Triggers>
34
+                        <Trigger Property="IsMouseOver" Value="true">
35
+                            <Setter  Property="Background" Value="{DynamicResource Button_MouseOver_Background}" />
36
+                            <Setter Property="BorderBrush" Value="{DynamicResource Button_MouseOver_BorderBrush}" />
37
+                            <Setter  Property="BorderThickness" Value="{DynamicResource Button_MouseOver_BorderThickness}" />
38
+                        </Trigger>
39
+                        <Trigger Property="IsEnabled" Value="false">
40
+                            <Setter  Property="Background" Value="{DynamicResource Button_Enable_Background}" />
41
+                            <Setter  Property="BorderBrush" Value="{DynamicResource Button_Enable_BorderBrush}" />
42
+                            <Setter  Property="BorderThickness" Value="{DynamicResource Button_Enable_BorderThickness}" />
43
+                            <Setter Property="Foreground" Value="{DynamicResource Button_Enable_Foreground}"/>
44
+                        </Trigger>
45
+                     
46
+                        <Trigger Property="IsPressed" Value="true">
47
+                            <Setter Property="Background" Value="{DynamicResource Button_Pressed_Background}" />
48
+                            <Setter Property="BorderBrush" Value="{DynamicResource Button_Pressed_BorderBrush}" />
49
+                            <Setter Property="BorderThickness" Value="{DynamicResource Button_Pressed_BorderThickness}" />
50
+                        </Trigger>
51
+                    </ControlTemplate.Triggers>
52
+                </ControlTemplate>
53
+            </Setter.Value>
54
+        </Setter>
55
+    </Style>
56
+    
57
+</ResourceDictionary>

+ 63
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/CheckBox.xaml View File

@@ -0,0 +1,63 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
3
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
+                    xmlns:dhcc="http://www.dhcc.com.cn">
5
+
6
+    <Style TargetType="CheckBox"  BasedOn="{StaticResource {x:Type CheckBox}}">
7
+        <Setter Property="dhcc:FocusManager.FocusHandled" Value="{x:Static dhcc:ControlHelper.EmptyFocusHandled}" />
8
+        <Setter Property="dhcc:FocusManager.IsInternalKeyboardControlling" Value="True" />
9
+        <Setter Property="dhcc:FocusManagerExt.IsFocusAdorner" Value="True" />
10
+        <Setter Property="SnapsToDevicePixels" Value="true"/>
11
+        <Setter Property="OverridesDefaultStyle" Value="true"/>
12
+        <Setter Property="FocusVisualStyle"	Value="{x:Null}"/>
13
+        <Setter Property="Background" Value="{DynamicResource CheckBox_Normal_Background}"/>
14
+        <Setter Property="BorderBrush" Value="{DynamicResource CheckBox_Normal_BorderBrush}"/>
15
+        <Setter Property="Foreground" Value="{DynamicResource CheckBox_Normal_Foreground}"/>
16
+
17
+        <Setter Property="Template">
18
+            <Setter.Value>
19
+                <ControlTemplate TargetType="CheckBox">
20
+                    <BulletDecorator Background="Transparent">
21
+                        <BulletDecorator.Bullet>
22
+                            <Border x:Name="Border" Width="13"  Height="13"  CornerRadius="0"  
23
+                                    Background="{TemplateBinding Background}"
24
+                                    BorderThickness="1"
25
+                                    BorderBrush="{TemplateBinding BorderBrush}">
26
+                                <Path  Width="10" Height="10"  
27
+                                       x:Name="CheckMark"
28
+                Stroke="{TemplateBinding Foreground}"
29
+                StrokeThickness="1.5"
30
+                                       Margin="1"
31
+                Data="M 1 4 L 4 8 M 4 8 L 9 0" />
32
+                            </Border>
33
+                        </BulletDecorator.Bullet>
34
+                        <ContentPresenter Margin="4,0,0,0"
35
+            VerticalAlignment="Center"
36
+            HorizontalAlignment="Left"
37
+            RecognizesAccessKey="True"/>
38
+                    </BulletDecorator>
39
+                    <ControlTemplate.Triggers>
40
+                        <Trigger Property="IsChecked" Value="false">
41
+                            <Setter TargetName="CheckMark" Property="Visibility" Value="Collapsed"/>
42
+                        </Trigger>
43
+                    </ControlTemplate.Triggers>
44
+                </ControlTemplate>
45
+            </Setter.Value>
46
+        </Setter>
47
+        <Style.Triggers>
48
+            <Trigger Property="IsMouseOver" Value="true">
49
+                <Setter Property="Background" Value="{DynamicResource CheckBox_MouseOver_Background}" />
50
+                <Setter Property="BorderBrush" Value="{DynamicResource CheckBox_MouseOver_BorderBrush}" />
51
+            </Trigger>
52
+            <Trigger Property="IsEnabled" Value="false">
53
+                <Setter Property="Background" Value="{DynamicResource CheckBox_Enable_Background}" />
54
+                <Setter Property="BorderBrush" Value="{DynamicResource CheckBox_Enable_BorderBrush}" />
55
+                <Setter Property="Foreground" Value="{DynamicResource CheckBox_Enable_Foreground}"/>
56
+            </Trigger>
57
+            <Trigger Property="IsPressed" Value="true">
58
+                <Setter Property="Background" Value="{DynamicResource CheckBox_Pressed_Background}" />
59
+            </Trigger>
60
+        </Style.Triggers>
61
+    </Style>
62
+
63
+</ResourceDictionary>

+ 378
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/Combobox.xaml View File

@@ -0,0 +1,378 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3
+                    xmlns:dhcc="http://www.dhcc.com.cn">
4
+    <Style x:Key="ComboBox_ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
5
+        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
6
+        <Setter Property="Template">
7
+            <Setter.Value>
8
+                <ControlTemplate TargetType="ToggleButton">
9
+                    <Grid>
10
+                        <Grid.ColumnDefinitions>
11
+                            <ColumnDefinition />
12
+                            <ColumnDefinition Width="20" />
13
+                        </Grid.ColumnDefinitions>
14
+                        <Border Name="Bd"
15
+                                Grid.ColumnSpan="2"
16
+                                Background="{DynamicResource ComboBoxButton_Normal_Background}"
17
+                                BorderBrush="{TemplateBinding BorderBrush}"
18
+                                BorderThickness="{TemplateBinding BorderThickness}"
19
+                                CornerRadius="2">
20
+                            <Grid>
21
+                                <Grid.ColumnDefinitions>
22
+                                    <ColumnDefinition />
23
+                                    <ColumnDefinition Width="20" />
24
+                                </Grid.ColumnDefinitions>
25
+                                <Border x:Name="Border"
26
+                                        Grid.Column="1"
27
+                                        Background="Transparent"
28
+                                        BorderBrush="{TemplateBinding BorderBrush}"
29
+                                        BorderThickness="0"
30
+                                        CornerRadius="2"
31
+                                        Cursor="Hand" />
32
+                            </Grid>
33
+                        </Border>
34
+                        <Border Name="Main_Border"
35
+                                Grid.Column="0"
36
+                                Margin="1"
37
+                                Background="{DynamicResource ComboBoxText_Normal_Background}"
38
+                                BorderBrush="Transparent"
39
+                                BorderThickness="{TemplateBinding BorderThickness}"
40
+                                CornerRadius="2,0,0,2"
41
+                                Cursor="Hand" />
42
+                        <Path x:Name="Arrow"
43
+                              Grid.Column="1"
44
+                              Margin="0,0,3,0"
45
+                              HorizontalAlignment="Center"
46
+                              VerticalAlignment="Center"
47
+                              Cursor="Hand"
48
+                              Data="M 0 0 L 4 4 L 8 0 Z"
49
+                              Fill="{DynamicResource ComboBoxButton_Normal_Foreground}" />
50
+                    </Grid>
51
+                    <ControlTemplate.Triggers>
52
+                        <Trigger SourceName="Main_Border" Property="IsMouseOver" Value="true">
53
+                            <Setter TargetName="Arrow" Property="Fill" Value="{DynamicResource ComboBox_MouseOver_Foreground}" />
54
+                            <Setter TargetName="Bd" Property="BorderBrush" Value="{DynamicResource ComboBox_MouseOver_BorderBrush}" />
55
+                        </Trigger>
56
+                        <Trigger SourceName="Main_Border" Property="dhcc:FocusManagerExt.AssertNotEmpty" Value="True">
57
+                            <Setter TargetName="Main_Border" Property="Background" Value="{DynamicResource TextBox_AssertNotEmpty_Background}" />
58
+                        </Trigger>
59
+                        <Trigger SourceName="Main_Border" Property="IsMouseOver" Value="true">
60
+                            <Setter TargetName="Arrow" Property="Fill" Value="{DynamicResource ComboBox_MouseOver_Foreground}" />
61
+                            <Setter TargetName="Bd" Property="BorderBrush" Value="{DynamicResource ComboBox_MouseOver_BorderBrush}" />
62
+                        </Trigger>
63
+                        <Trigger SourceName="Border" Property="IsMouseOver" Value="true">
64
+                            <Setter TargetName="Bd" Property="BorderBrush" Value="{DynamicResource ComboBox_MouseOver_BorderBrush}" />
65
+                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource ComboBoxButton_MouseOver_Background}" />
66
+                            <Setter TargetName="Arrow" Property="Fill" Value="{DynamicResource ComboBox_MouseOver_Foreground}" />
67
+                        </Trigger>
68
+                        <Trigger SourceName="Arrow" Property="IsMouseOver" Value="true">
69
+                            <Setter TargetName="Bd" Property="BorderBrush" Value="{DynamicResource ComboBox_MouseOver_BorderBrush}" />
70
+                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource ComboBoxButton_MouseOver_Background}" />
71
+                            <Setter TargetName="Arrow" Property="Fill" Value="{DynamicResource ComboBox_MouseOver_Foreground}" />
72
+                        </Trigger>
73
+                        <Trigger Property="ToggleButton.IsChecked" Value="true">
74
+                            <Setter TargetName="Bd" Property="BorderBrush" Value="{DynamicResource ComboBox_Check_BorderBrush}" />
75
+                            <Setter TargetName="Bd" Property="BorderThickness" Value="{DynamicResource ComboBox_Check_BorderThickness}" />
76
+                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource ComboBox_Check_Background}" />
77
+                        </Trigger>
78
+                        <Trigger Property="IsEnabled" Value="False">
79
+                            <Setter TargetName="Main_Border" Property="Background" Value="{DynamicResource ComboBox_Enable_Background}" />
80
+                            <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource ComboBox_Enable_BorderBrush}" />
81
+                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource ComboBox_Enable_Background}" />
82
+                            <Setter TargetName="Bd" Property="Background" Value="{DynamicResource ComboBox_Enable_Background}" />
83
+                            <Setter Property="Foreground" Value="{DynamicResource ComboBox_Enable_Foreground}" />
84
+                            <Setter TargetName="Arrow" Property="Fill" Value="{DynamicResource ComboBox_Enable_Foreground}" />
85
+                        </Trigger>
86
+                    </ControlTemplate.Triggers>
87
+                </ControlTemplate>
88
+            </Setter.Value>
89
+        </Setter>
90
+    </Style>
91
+    <ControlTemplate x:Key="ComboBox_ComboBoxTextBox" TargetType="TextBox">
92
+        <Border Background="{TemplateBinding Background}"
93
+                CornerRadius="10"
94
+                Focusable="False">
95
+            <ScrollViewer x:Name="PART_ContentHost" />
96
+        </Border>
97
+    </ControlTemplate>
98
+
99
+    <Style BasedOn="{StaticResource {x:Type ComboBox}}" TargetType="{x:Type ComboBox}">
100
+        <Style.Resources>
101
+            <dhcc:IndexOfIListConverter x:Key="GetIndex" />
102
+        </Style.Resources>
103
+        <Setter Property="dhcc:FocusManager.FocusHandled" Value="{x:Static dhcc:ComboBoxHelper.ComboBoxFocusHandled}" />
104
+        <Setter Property="dhcc:FocusManager.MouseFocusHandled" Value="{x:Static dhcc:ComboBoxHelper.ComboBoxHandled}" />
105
+        <Setter Property="dhcc:FocusManager.IsInternalKeyboardControlling" Value="True" />
106
+        <Setter Property="dhcc:FocusManagerExt.IsFocusAdorner" Value="True" />
107
+        <Setter Property="Height" Value="{DynamicResource GroupBox_Normal_Height}" />
108
+        <Setter Property="Width" Value="{DynamicResource GroupBox_Normal_Width}" />
109
+        <Setter Property="HorizontalAlignment" Value="{DynamicResource ComboBox_Normal_HorizontalAlignment}" />
110
+        <Setter Property="VerticalAlignment" Value="{DynamicResource ComboBox_Normal_VerticalAlignment}" />
111
+        <Setter Property="SelectedValuePath" Value="Value" />
112
+        <Setter Property="IsEditable" Value="false" />
113
+        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
114
+        <Setter Property="SnapsToDevicePixels" Value="true" />
115
+        <Setter Property="OverridesDefaultStyle" Value="true" />
116
+        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
117
+        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
118
+        <Setter Property="ScrollViewer.CanContentScroll" Value="true" />
119
+        <Setter Property="dhcc:FocusManagerExt.ValidationField" Value="SelectedValue" />
120
+        <!--  ComboBox 循环遍历元素  -->
121
+        <Setter Property="KeyboardNavigation.DirectionalNavigation" Value="Cycle" />
122
+        <Setter Property="dhcc:FocusManagerExt.FieldEmptyPolicies">
123
+            <Setter.Value>
124
+                <dhcc:FieldPolicyCollection>
125
+                    <dhcc:ShowTipPolicy Placement="Right" />
126
+                </dhcc:FieldPolicyCollection>
127
+            </Setter.Value>
128
+        </Setter>
129
+        <Setter Property="ItemTemplate">
130
+            <Setter.Value>
131
+                <DataTemplate>
132
+                    <StackPanel HorizontalAlignment="Stretch"
133
+                                Background="Transparent"
134
+                                Orientation="Horizontal">
135
+                        <TextBlock Width="Auto" Text="[" />
136
+                        <TextBlock Width="Auto">
137
+                            <TextBlock.Text>
138
+                                <MultiBinding Converter="{StaticResource GetIndex}">
139
+                                    <Binding Path="Items" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType={x:Type ComboBox}}" />
140
+                                    <Binding />
141
+                                </MultiBinding>
142
+                            </TextBlock.Text>
143
+                        </TextBlock>
144
+                        <TextBlock Width="Auto" Text="]" />
145
+                        <TextBlock Text="{Binding Mode=OneTime, Path=Key}" />
146
+                    </StackPanel>
147
+                </DataTemplate>
148
+            </Setter.Value>
149
+        </Setter>
150
+        <!--  <MultiBinding StringFormat="{}[{0}]{1}">  -->
151
+        <Setter Property="Template">
152
+            <Setter.Value>
153
+                <ControlTemplate TargetType="ComboBox">
154
+                    <Grid>
155
+                        <ToggleButton Name="ToggleButton"
156
+                                      Grid.Column="2"
157
+                                      Background="{DynamicResource ComboBox_Normal_Background}"
158
+                                      BorderBrush="{DynamicResource ComboBox_Normal_BorderBrush}"
159
+                                      BorderThickness="{DynamicResource ComboBox_Normal_BorderThickness}"
160
+                                      ClickMode="Press"
161
+                                      Focusable="false"
162
+                                      IsChecked="{Binding Path=IsDropDownOpen,
163
+                                                          Mode=TwoWay,
164
+                                                          RelativeSource={RelativeSource TemplatedParent}}"
165
+                                      Style="{StaticResource ComboBox_ComboBoxToggleButton}" />
166
+
167
+                        <ContentPresenter Name="ContentSite"
168
+                                          Margin="3,3,23,3"
169
+                                          HorizontalAlignment="Left"
170
+                                          VerticalAlignment="Center"
171
+                                          Content="{TemplateBinding SelectionBoxItem}"
172
+                                          ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
173
+                                          ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
174
+                                          IsHitTestVisible="False" />
175
+                        <TextBox x:Name="PART_EditableTextBox"
176
+                                 Margin="3,3,23,3"
177
+                                 HorizontalAlignment="Left"
178
+                                 VerticalAlignment="Center"
179
+                                 Background="Transparent"
180
+                                 Focusable="True"
181
+                                 IsReadOnly="{TemplateBinding IsReadOnly}"
182
+                                 Style="{x:Null}"
183
+                                 Template="{StaticResource ComboBox_ComboBoxTextBox}"
184
+                                 Visibility="Hidden" />
185
+                        <Popup Name="Popup"
186
+                               AllowsTransparency="True"
187
+                               Focusable="False"
188
+                               IsOpen="{TemplateBinding IsDropDownOpen}"
189
+                               Placement="Bottom"
190
+                               PopupAnimation="Slide">
191
+                            <Grid Name="DropDown"
192
+                                  MinWidth="{TemplateBinding ActualWidth}"
193
+                                  MaxHeight="{TemplateBinding MaxDropDownHeight}"
194
+                                  SnapsToDevicePixels="True">
195
+                                <Border x:Name="DropDownBorder"
196
+                                        Background="{DynamicResource ComboBoxDropdown_Normal_Background}"
197
+                                        BorderBrush="{DynamicResource ComboBoxDropdown_Normal_BorderBrush}"
198
+                                        BorderThickness="{DynamicResource ComboBoxDropdown_Normal_BorderThickness}" />
199
+                                <ScrollViewer Margin="0,2,0,0"
200
+                                              FocusVisualStyle="{x:Null}"
201
+                                              HorizontalScrollBarVisibility="Auto"
202
+                                              SnapsToDevicePixels="True">
203
+                                    <StackPanel Margin="1,1,1,1"
204
+                                                IsItemsHost="True"
205
+                                                KeyboardNavigation.DirectionalNavigation="Contained" />
206
+                                </ScrollViewer>
207
+                            </Grid>
208
+                        </Popup>
209
+                    </Grid>
210
+                    <ControlTemplate.Triggers>
211
+                        <Trigger Property="HasItems" Value="false">
212
+                            <Setter TargetName="DropDownBorder" Property="MinHeight" Value="95" />
213
+                        </Trigger>
214
+                        <Trigger Property="IsEnabled" Value="false">
215
+                            <Setter Property="Foreground" Value="{DynamicResource ComboBox_Enable_Foreground}" />
216
+                        </Trigger>
217
+                        <Trigger Property="IsGrouping" Value="true">
218
+                            <Setter Property="ScrollViewer.CanContentScroll" Value="false" />
219
+                        </Trigger>
220
+                        <Trigger SourceName="Popup" Property="Popup.AllowsTransparency" Value="true">
221
+                            <Setter TargetName="DropDownBorder" Property="CornerRadius" Value="0" />
222
+                            <Setter TargetName="DropDownBorder" Property="Margin" Value="0,2,0,0" />
223
+                        </Trigger>
224
+                        <Trigger Property="IsEditable" Value="true">
225
+                            <Setter Property="IsTabStop" Value="false" />
226
+                            <Setter TargetName="PART_EditableTextBox" Property="Visibility" Value="Visible" />
227
+                            <Setter TargetName="ContentSite" Property="Visibility" Value="Hidden" />
228
+                        </Trigger>
229
+                        <Trigger Property="Width" Value="Auto">
230
+                            <Setter Property="MinWidth" Value="120" />
231
+                        </Trigger>
232
+                        <Trigger Property="Height" Value="Auto">
233
+                            <Setter Property="MinHeight" Value="20" />
234
+                        </Trigger>
235
+                    </ControlTemplate.Triggers>
236
+                </ControlTemplate>
237
+            </Setter.Value>
238
+        </Setter>
239
+        <Style.Triggers />
240
+    </Style>
241
+    <Style TargetType="{x:Type ComboBoxItem}">
242
+        <Setter Property="SnapsToDevicePixels" Value="true" />
243
+        <Setter Property="OverridesDefaultStyle" Value="true" />
244
+        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
245
+        <Setter Property="Cursor" Value="Hand" />
246
+        <Setter Property="Template">
247
+            <Setter.Value>
248
+                <ControlTemplate TargetType="ComboBoxItem">
249
+                    <Border Name="Border"
250
+                            Padding="2"
251
+                            SnapsToDevicePixels="true">
252
+                        <ContentPresenter />
253
+                    </Border>
254
+                    <ControlTemplate.Triggers>
255
+                        <Trigger Property="IsHighlighted" Value="true">
256
+                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource ComboBoxItem_Select_Background}" />
257
+                        </Trigger>
258
+                        <Trigger Property="IsEnabled" Value="false">
259
+                            <Setter Property="Foreground" Value="{DynamicResource ComboBoxItem_Enable_Foreground}" />
260
+                        </Trigger>
261
+                    </ControlTemplate.Triggers>
262
+                </ControlTemplate>
263
+            </Setter.Value>
264
+        </Setter>
265
+    </Style>
266
+
267
+
268
+    <!--  AutoComplete  -->
269
+    <Style x:Key="AutoCompleteComboBox" TargetType="ComboBox">
270
+        <Setter Property="dhcc:FocusManager.FocusHandled" Value="{x:Static dhcc:ComboBoxHelper.ComboBoxNormalFocusHandled}" />
271
+        <Setter Property="dhcc:FocusManager.MouseFocusHandled" Value="{x:Static dhcc:ComboBoxHelper.ComboBoxHandled}" />
272
+        <Setter Property="dhcc:FocusManager.IsInternalKeyboardControlling" Value="True" />
273
+        <Setter Property="dhcc:FocusManagerExt.IsFocusAdorner" Value="True" />
274
+        <Setter Property="IsTextSearchEnabled" Value="False" />
275
+        <Setter Property="SelectedValuePath" Value="Value" />
276
+        <Setter Property="DisplayMemberPath" Value="Key" />
277
+        <Setter Property="IsEditable" Value="True" />
278
+        <Setter Property="MaxDropDownHeight" Value="200" />
279
+        <Setter Property="IsSynchronizedWithCurrentItem" Value="False" />
280
+        <Setter Property="SnapsToDevicePixels" Value="true" />
281
+        <Setter Property="OverridesDefaultStyle" Value="true" />
282
+        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
283
+        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
284
+        <Setter Property="ScrollViewer.CanContentScroll" Value="true" />
285
+        <Setter Property="dhcc:FocusManagerExt.ValidationField" Value="SelectedValue" />
286
+        <Setter Property="KeyboardNavigation.DirectionalNavigation" Value="Cycle" />
287
+        <Setter Property="dhcc:FocusManagerExt.FieldEmptyPolicies">
288
+            <Setter.Value>
289
+                <dhcc:FieldPolicyCollection>
290
+                    <dhcc:ShowTipPolicy Placement="Right" />
291
+                </dhcc:FieldPolicyCollection>
292
+            </Setter.Value>
293
+        </Setter>
294
+        <Setter Property="Template">
295
+            <Setter.Value>
296
+                <ControlTemplate TargetType="ComboBox">
297
+                    <Grid>
298
+                        <ToggleButton Name="ToggleButton"
299
+                                      Grid.Column="2"
300
+                                      Background="{DynamicResource ComboBox_Normal_Background}"
301
+                                      BorderBrush="{DynamicResource ComboBox_Normal_BorderBrush}"
302
+                                      BorderThickness="{DynamicResource ComboBox_Normal_BorderThickness}"
303
+                                      ClickMode="Press"
304
+                                      Focusable="false"
305
+                                      IsChecked="{Binding Path=IsDropDownOpen,
306
+                                                          Mode=TwoWay,
307
+                                                          RelativeSource={RelativeSource TemplatedParent}}"
308
+                                      Style="{StaticResource ComboBox_ComboBoxToggleButton}" />
309
+                        <ContentPresenter Name="ContentSite"
310
+                                          Margin="3,3,23,3"
311
+                                          HorizontalAlignment="Left"
312
+                                          VerticalAlignment="Center"
313
+                                          Content="{TemplateBinding SelectionBoxItem}"
314
+                                          ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
315
+                                          ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
316
+                                          IsHitTestVisible="False" />
317
+                        <TextBox x:Name="PART_EditableTextBox"
318
+                                 Margin="3,3,23,3"
319
+                                 HorizontalAlignment="Left"
320
+                                 VerticalAlignment="Center"
321
+                                 Background="Transparent"
322
+                                 Focusable="True"
323
+                                 IsHitTestVisible="False"
324
+                                 IsReadOnly="{TemplateBinding IsReadOnly}"
325
+                                 Style="{x:Null}"
326
+                                 Template="{StaticResource ComboBox_ComboBoxTextBox}"
327
+                                 Visibility="Hidden" />
328
+                        <Popup Name="Popup"
329
+                               AllowsTransparency="True"
330
+                               Focusable="False"
331
+                               IsOpen="{TemplateBinding IsDropDownOpen}"
332
+                               Placement="Bottom"
333
+                               PopupAnimation="Slide">
334
+                            <Grid Name="DropDown"
335
+                                  MinWidth="{TemplateBinding ActualWidth}"
336
+                                  MaxHeight="{TemplateBinding MaxDropDownHeight}"
337
+                                  SnapsToDevicePixels="True">
338
+                                <Border x:Name="DropDownBorder"
339
+                                        Background="{DynamicResource ComboBoxDropdown_Normal_Background}"
340
+                                        BorderBrush="{DynamicResource ComboBoxDropdown_Normal_BorderBrush}"
341
+                                        BorderThickness="{DynamicResource ComboBoxDropdown_Normal_BorderThickness}" />
342
+                                <ScrollViewer Margin="4,6,4,6" SnapsToDevicePixels="True">
343
+                                    <StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Cycle" />
344
+                                </ScrollViewer>
345
+                            </Grid>
346
+                        </Popup>
347
+                    </Grid>
348
+                    <ControlTemplate.Triggers>
349
+                        <Trigger Property="HasItems" Value="false">
350
+                            <Setter TargetName="DropDownBorder" Property="MinHeight" Value="95" />
351
+                        </Trigger>
352
+                        <Trigger Property="IsEnabled" Value="false">
353
+                            <Setter Property="Foreground" Value="{DynamicResource ComboBox_Enable_Foreground}" />
354
+                        </Trigger>
355
+                        <Trigger Property="IsGrouping" Value="true">
356
+                            <Setter Property="ScrollViewer.CanContentScroll" Value="false" />
357
+                        </Trigger>
358
+                        <Trigger SourceName="Popup" Property="Popup.AllowsTransparency" Value="true">
359
+                            <Setter TargetName="DropDownBorder" Property="CornerRadius" Value="0" />
360
+                            <Setter TargetName="DropDownBorder" Property="Margin" Value="0,2,0,0" />
361
+                        </Trigger>
362
+                        <Trigger Property="IsEditable" Value="true">
363
+                            <Setter Property="IsTabStop" Value="false" />
364
+                            <Setter TargetName="PART_EditableTextBox" Property="Visibility" Value="Visible" />
365
+                            <Setter TargetName="ContentSite" Property="Visibility" Value="Hidden" />
366
+                        </Trigger>
367
+                        <Trigger Property="Width" Value="Auto">
368
+                            <Setter Property="MinWidth" Value="120" />
369
+                        </Trigger>
370
+                        <Trigger Property="Height" Value="Auto">
371
+                            <Setter Property="MinHeight" Value="20" />
372
+                        </Trigger>
373
+                    </ControlTemplate.Triggers>
374
+                </ControlTemplate>
375
+            </Setter.Value>
376
+        </Setter>
377
+    </Style>
378
+</ResourceDictionary>

+ 504
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/DataGrid.xaml View File

@@ -0,0 +1,504 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3
+                    xmlns:dhcc="http://www.dhcc.com.cn">
4
+    <Color x:Key="ControlMouseOverColor">#FF3843C4</Color>
5
+
6
+    <!--  Button样式和模板  -->
7
+    <Style x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}" TargetType="{x:Type Button}">
8
+        <Setter Property="Template">
9
+            <Setter.Value>
10
+                <ControlTemplate TargetType="{x:Type Button}">
11
+                    <Border BorderBrush="{DynamicResource DataGridColumnHeader_Normal_BorderBrush}" BorderThickness="0,0,1,1">
12
+                        <Grid>
13
+                            <VisualStateManager.VisualStateGroups>
14
+                                <VisualStateGroup x:Name="CommonStates">
15
+                                    <VisualState x:Name="Normal" />
16
+                                    <VisualState x:Name="MouseOver" />
17
+                                    <VisualState x:Name="Pressed" />
18
+                                    <VisualState x:Name="Disabled" />
19
+                                </VisualStateGroup>
20
+                            </VisualStateManager.VisualStateGroups>
21
+
22
+                            <Rectangle x:Name="Border"
23
+                                       Fill="{DynamicResource DataGridColumnHeader_Normal_Background}"
24
+                                       SnapsToDevicePixels="True" />
25
+                            <Polygon x:Name="Arrow"
26
+                                     Margin="8,8,3,3"
27
+                                     HorizontalAlignment="Right"
28
+                                     VerticalAlignment="Bottom"
29
+                                     Fill="Black"
30
+                                     Opacity="0.35"
31
+                                     Points="0,10 10,10 10,0"
32
+                                     Stretch="Uniform" />
33
+                        </Grid>
34
+                    </Border>
35
+                </ControlTemplate>
36
+            </Setter.Value>
37
+        </Setter>
38
+    </Style>
39
+
40
+    <!--  Button样式和模板  -->
41
+    <Style x:Key="DataGridShowButton" TargetType="{x:Type Button}">
42
+        <Setter Property="Template">
43
+            <Setter.Value>
44
+                <ControlTemplate TargetType="{x:Type Button}">
45
+                    <Border BorderBrush="{DynamicResource DataGridColumnHeader_Normal_BorderBrush}" BorderThickness="0,0,1,1">
46
+                        <Grid>
47
+                            
48
+
49
+                            <Rectangle x:Name="Border"
50
+                                       Fill="{DynamicResource DataGridColumnHeader_Normal_Background}"
51
+                                       SnapsToDevicePixels="True" />
52
+                            <Polygon x:Name="Arrow"
53
+                                     Margin="2"
54
+                                     HorizontalAlignment="Center"
55
+                                     VerticalAlignment="Center"
56
+                                     Fill="Black"
57
+                                     Opacity="0.35"
58
+                                     Points="5,0 0,5 5,10 10,5"
59
+                                     Stretch="Uniform" />
60
+                        </Grid>
61
+                    </Border>
62
+                </ControlTemplate>
63
+            </Setter.Value>
64
+        </Setter>
65
+    </Style>
66
+
67
+    <!--  DataGrid样式和模板  -->
68
+    <Style BasedOn="{StaticResource {x:Type DataGrid}}" TargetType="{x:Type DataGrid}">
69
+        <Setter Property="Foreground" Value="Black" />
70
+        <Setter Property="BorderBrush" Value="{DynamicResource DataGrid_Normal_BorderBrush}" />
71
+        <Setter Property="BorderThickness" Value="{DynamicResource DataGrid_Normal_BorderThickness}" />
72
+        <Setter Property="RowDetailsVisibilityMode" Value="VisibleWhenSelected" />
73
+        <Setter Property="ScrollViewer.CanContentScroll" Value="true" />
74
+        <Setter Property="ScrollViewer.PanningMode" Value="Both" />
75
+        <Setter Property="HorizontalGridLinesBrush" Value="{DynamicResource DataGrid_Normal_HorizontalGridLinesBrush}" />
76
+        <Setter Property="VerticalGridLinesBrush" Value="{DynamicResource DataGrid_Normal_VerticalGridLinesBrush}" />
77
+        <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
78
+        <Setter Property="CanUserResizeRows" Value="False" />
79
+        <Setter Property="Background" Value="{DynamicResource DataGrid_Normal_Background}" />
80
+        <Setter Property="AlternationCount" Value="2" />
81
+        <Setter Property="Template">
82
+            <Setter.Value>
83
+                <ControlTemplate TargetType="{x:Type DataGrid}">
84
+                    <Border x:Name="border"
85
+                            Background="{TemplateBinding Background}"
86
+                            BorderBrush="{TemplateBinding BorderBrush}"
87
+                            BorderThickness="{TemplateBinding BorderThickness}"
88
+                            Padding="{TemplateBinding Padding}"
89
+                            SnapsToDevicePixels="True">
90
+                        <ScrollViewer x:Name="DG_ScrollViewer" Focusable="false">
91
+                            <ScrollViewer.Template>
92
+                                <ControlTemplate TargetType="{x:Type ScrollViewer}">
93
+                                    <Grid>
94
+                                        <Grid.ColumnDefinitions>
95
+                                            <ColumnDefinition Width="Auto" />
96
+                                            <ColumnDefinition Width="*" />
97
+                                            <ColumnDefinition Width="Auto" />
98
+                                        </Grid.ColumnDefinitions>
99
+                                        <Grid.RowDefinitions>
100
+                                            <RowDefinition Height="Auto" />
101
+                                            <RowDefinition Height="*" />
102
+                                            <RowDefinition Height="Auto" />
103
+                                        </Grid.RowDefinitions>
104
+                                        <Button x:Name="DataGridButton"
105
+                                                Width="{Binding CellsPanelHorizontalOffset,
106
+                                                                RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"
107
+                                                Command="{x:Static DataGrid.SelectAllCommand}"
108
+                                                Focusable="false"
109
+                                                Style="{DynamicResource {ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle,
110
+                                                                                              TypeInTargetAssembly={x:Type DataGrid}}}"
111
+                                                Visibility="Visible" />
112
+                                        <DataGridColumnHeadersPresenter x:Name="PART_ColumnHeadersPresenter"
113
+                                                                        Grid.Column="1"
114
+                                                                        Background="{DynamicResource DataGridColumnHeader_Normal_Background}"
115
+                                                                        Visibility="{Binding HeadersVisibility,
116
+                                                                                             ConverterParameter={x:Static DataGridHeadersVisibility.Column},
117
+                                                                                             Converter={x:Static DataGrid.HeadersVisibilityConverter},
118
+                                                                                             RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" />
119
+                                        <ScrollContentPresenter x:Name="PART_ScrollContentPresenter"
120
+                                                                Grid.Row="1"
121
+                                                                Grid.ColumnSpan="2"
122
+                                                                CanContentScroll="{TemplateBinding CanContentScroll}" />
123
+                                        <ScrollBar x:Name="PART_VerticalScrollBar"
124
+                                                   Grid.Row="0"
125
+                                                   Grid.RowSpan="2"
126
+                                                   Grid.Column="2"
127
+                                                   Maximum="{TemplateBinding ScrollableHeight}"
128
+                                                   Orientation="Vertical"
129
+                                                   ViewportSize="{TemplateBinding ViewportHeight}"
130
+                                                   Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
131
+                                                   Value="{Binding VerticalOffset,
132
+                                                                   Mode=OneWay,
133
+                                                                   RelativeSource={RelativeSource TemplatedParent}}" />
134
+                                        <Grid Grid.Row="2" Grid.Column="1">
135
+                                            <Grid.ColumnDefinitions>
136
+                                                <ColumnDefinition Width="{Binding NonFrozenColumnsViewportHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" />
137
+                                                <ColumnDefinition Width="*" />
138
+                                            </Grid.ColumnDefinitions>
139
+
140
+                                            <ScrollBar x:Name="PART_HorizontalScrollBar"
141
+                                                       Grid.Column="1"
142
+                                                       Maximum="{TemplateBinding ScrollableWidth}"
143
+                                                       Orientation="Horizontal"
144
+                                                       ViewportSize="{TemplateBinding ViewportWidth}"
145
+                                                       Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
146
+                                                       Value="{Binding HorizontalOffset,
147
+                                                                       Mode=OneWay,
148
+                                                                       RelativeSource={RelativeSource TemplatedParent}}" />
149
+                                        </Grid>
150
+                                    </Grid>
151
+                                </ControlTemplate>
152
+                            </ScrollViewer.Template>
153
+                            <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
154
+                        </ScrollViewer>
155
+                    </Border>
156
+                </ControlTemplate>
157
+            </Setter.Value>
158
+        </Setter>
159
+        <Style.Triggers>
160
+            <Trigger Property="IsGrouping" Value="true">
161
+                <Setter Property="ScrollViewer.CanContentScroll" Value="false" />
162
+            </Trigger>
163
+            <Trigger Property="IsEnabled" Value="false">
164
+                <Setter Property="Background" Value="{DynamicResource DataGrid_Enable_Background}" />
165
+            </Trigger>
166
+        </Style.Triggers>
167
+    </Style>
168
+
169
+    <!--  DataGridCell样式和模板  -->
170
+    <Style TargetType="{x:Type DataGridCell}">
171
+        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
172
+        <Setter Property="Foreground" Value="Black" />
173
+        <Setter Property="BorderBrush" Value="Transparent" />
174
+        <Setter Property="Background" Value="Transparent" />
175
+        <Setter Property="Template">
176
+            <Setter.Value>
177
+                <ControlTemplate TargetType="{x:Type DataGridCell}">
178
+                    <Border x:Name="border"
179
+                            Background="{TemplateBinding Background}"
180
+                            BorderBrush="{TemplateBinding BorderBrush}"
181
+                            BorderThickness="0"
182
+                            Padding="2"
183
+                            SnapsToDevicePixels="True">
184
+                        <VisualStateManager.VisualStateGroups>
185
+                            <VisualStateGroup x:Name="FocusStates">
186
+                                <VisualState x:Name="Unfocused" />
187
+                                <VisualState x:Name="Focused" />
188
+                            </VisualStateGroup>
189
+                            <VisualStateGroup x:Name="CurrentStates">
190
+                                <VisualState x:Name="Regular" />
191
+                                <VisualState x:Name="Current">
192
+                                    <Storyboard>
193
+                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="border" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)">
194
+                                            <EasingColorKeyFrame KeyTime="0" Value="#75A1AE" />
195
+                                        </ColorAnimationUsingKeyFrames>
196
+                                    </Storyboard>
197
+                                </VisualState>
198
+                            </VisualStateGroup>
199
+                        </VisualStateManager.VisualStateGroups>
200
+                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
201
+                                          VerticalAlignment="Center"
202
+                                          SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
203
+                    </Border>
204
+                    <ControlTemplate.Triggers>
205
+                        <Trigger Property="IsSelected" Value="true">
206
+                            <Setter Property="BorderBrush" Value="#B4C8D5" />
207
+                        </Trigger>
208
+                    </ControlTemplate.Triggers>
209
+
210
+                </ControlTemplate>
211
+            </Setter.Value>
212
+        </Setter>
213
+    </Style>
214
+
215
+    <!--  DataGridRow样式和模板  -->
216
+    <Style TargetType="{x:Type DataGridRow}">
217
+        <Setter Property="Background">
218
+            <Setter.Value>
219
+                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
220
+                    <GradientStop Offset="0" Color="{DynamicResource DataGridRow_Normal_Background0}" />
221
+                    <GradientStop Offset="1" Color="{DynamicResource DataGridRow_Normal_Background1}" />
222
+                </LinearGradientBrush>
223
+            </Setter.Value>
224
+        </Setter>
225
+        <Setter Property="SnapsToDevicePixels" Value="true" />
226
+        <Setter Property="Height" Value="23" />
227
+        <Setter Property="ValidationErrorTemplate">
228
+            <Setter.Value>
229
+                <ControlTemplate>
230
+                    <Grid>
231
+                        <Ellipse Width="12"
232
+                                 Height="12"
233
+                                 Fill="Red"
234
+                                 Stroke="Black"
235
+                                 StrokeThickness="0.5" />
236
+                        <TextBlock Margin="0"
237
+                                   VerticalAlignment="Top"
238
+                                   FontWeight="Bold"
239
+                                   Foreground="White"
240
+                                   Padding="4,0,0,0"
241
+                                   Text="!"
242
+                                   ToolTip="{Binding RelativeSource={RelativeSource FindAncestor,
243
+                                                                                    AncestorType={x:Type DataGridRow}},
244
+                                                     Path=(Validation.Errors)[0].ErrorContent}" />
245
+                    </Grid>
246
+                </ControlTemplate>
247
+            </Setter.Value>
248
+        </Setter>
249
+        <Setter Property="BorderBrush" Value="{DynamicResource DataGridRow_Normal_BorderBrush}" />
250
+        <Setter Property="BorderThickness" Value="{DynamicResource DataGridRow_Normal_BorderThickness}" />
251
+        <Setter Property="Template">
252
+            <Setter.Value>
253
+                <ControlTemplate TargetType="{x:Type DataGridRow}">
254
+                    <Border x:Name="DGR_Border"
255
+                            Background="{TemplateBinding Background}"
256
+                            BorderBrush="{TemplateBinding BorderBrush}"
257
+                            BorderThickness="{TemplateBinding BorderThickness}"
258
+                            SnapsToDevicePixels="True">
259
+                        <VisualStateManager.VisualStateGroups>
260
+                            <VisualStateGroup x:Name="CommonStates">
261
+                                <VisualState x:Name="Normal" />
262
+                                <VisualState x:Name="Normal_AlternatingRow">
263
+                                    <Storyboard>
264
+                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="DGR_Border" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
265
+                                            <EasingColorKeyFrame KeyTime="0" Value="{DynamicResource DataGridRow_Normal_AlternatingRow0}" />
266
+                                        </ColorAnimationUsingKeyFrames>
267
+                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="DGR_Border" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
268
+                                            <EasingColorKeyFrame KeyTime="0" Value="{DynamicResource DataGridRow_Normal_AlternatingRow1}" />
269
+                                        </ColorAnimationUsingKeyFrames>
270
+                                    </Storyboard>
271
+                                </VisualState>
272
+                                <VisualState x:Name="Normal_Selected">
273
+                                    <Storyboard>
274
+                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="DGR_Border" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
275
+                                            <EasingColorKeyFrame KeyTime="0" Value="{DynamicResource DataGridRow_Select_Background0}" />
276
+                                        </ColorAnimationUsingKeyFrames>
277
+                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="DGR_Border" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
278
+                                            <EasingColorKeyFrame KeyTime="0" Value="{DynamicResource DataGridRow_Select_Background1}" />
279
+                                        </ColorAnimationUsingKeyFrames>
280
+                                    </Storyboard>
281
+                                </VisualState>
282
+                                <VisualState x:Name="MouseOver">
283
+                                    <Storyboard>
284
+                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="DGR_Border" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
285
+                                            <EasingColorKeyFrame KeyTime="0" Value="{DynamicResource DataGridRow_MouseOver_Background0}" />
286
+                                        </ColorAnimationUsingKeyFrames>
287
+                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="DGR_Border" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
288
+                                            <EasingColorKeyFrame KeyTime="0" Value="{DynamicResource DataGridRow_MouseOver_Background1}" />
289
+                                        </ColorAnimationUsingKeyFrames>
290
+                                    </Storyboard>
291
+                                </VisualState>
292
+
293
+                            </VisualStateGroup>
294
+                        </VisualStateManager.VisualStateGroups>
295
+
296
+                        <SelectiveScrollingGrid>
297
+                            <SelectiveScrollingGrid.ColumnDefinitions>
298
+                                <ColumnDefinition Width="Auto" />
299
+                                <ColumnDefinition Width="*" />
300
+                            </SelectiveScrollingGrid.ColumnDefinitions>
301
+                            <SelectiveScrollingGrid.RowDefinitions>
302
+                                <RowDefinition Height="*" />
303
+                                <RowDefinition Height="Auto" />
304
+                            </SelectiveScrollingGrid.RowDefinitions>
305
+                            <DataGridCellsPresenter Grid.Column="1"
306
+                                                    ItemsPanel="{TemplateBinding ItemsPanel}"
307
+                                                    SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
308
+                            <DataGridDetailsPresenter Grid.Row="1"
309
+                                                      Grid.Column="1"
310
+                                                      SelectiveScrollingGrid.SelectiveScrollingOrientation="{Binding AreRowDetailsFrozen,
311
+                                                                                                                     ConverterParameter={x:Static SelectiveScrollingOrientation.Vertical},
312
+                                                                                                                     Converter={x:Static DataGrid.RowDetailsScrollingConverter},
313
+                                                                                                                     RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"
314
+                                                      Visibility="{TemplateBinding DetailsVisibility}" />
315
+                            <DataGridRowHeader Grid.RowSpan="2"
316
+                                               SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"
317
+                                               Visibility="{Binding HeadersVisibility,
318
+                                                                    ConverterParameter={x:Static DataGridHeadersVisibility.Row},
319
+                                                                    Converter={x:Static DataGrid.HeadersVisibilityConverter},
320
+                                                                    RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" />
321
+                        </SelectiveScrollingGrid>
322
+                    </Border>
323
+                    <ControlTemplate.Triggers>
324
+                        <Trigger Property="IsMouseOver" Value="true">
325
+                            <Setter Property="BorderThickness" Value="{DynamicResource DataGridRow_MouseOver_BorderThickness}" />
326
+                            <Setter Property="BorderBrush" Value="{DynamicResource DataGridRow_MouseOver_BorderBrush}" />
327
+                            <Setter TargetName="DGR_Border" Property="Margin" Value="0,-1,0,0" />
328
+                        </Trigger>
329
+                        <Trigger Property="IsSelected" Value="true">
330
+                            <Setter Property="BorderBrush" Value="{DynamicResource DataGridRow_Select_BorderBrush}" />
331
+                            <Setter Property="BorderThickness" Value="{DynamicResource DataGridRow_Select_BorderThickness}" />
332
+                            <Setter TargetName="DGR_Border" Property="Margin" Value="0,-1,0,0" />
333
+                        </Trigger>
334
+                        <Trigger Property="Validation.HasError" Value="true">
335
+                            <Setter Property="BorderThickness" Value="1" />
336
+                            <Setter Property="BorderBrush" Value="Red" />
337
+                            <Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}" />
338
+                        </Trigger>
339
+                    </ControlTemplate.Triggers>
340
+                </ControlTemplate>
341
+            </Setter.Value>
342
+        </Setter>
343
+    </Style>
344
+
345
+    <!--  DataGridRowHeader样式和模板  -->
346
+    <Style x:Key="RowHeaderGripperStyle" TargetType="{x:Type Thumb}">
347
+        <Setter Property="Height" Value="8" />
348
+        <Setter Property="Background" Value="Transparent" />
349
+        <Setter Property="Cursor" Value="SizeNS" />
350
+        <Setter Property="Template">
351
+            <Setter.Value>
352
+                <ControlTemplate TargetType="{x:Type Thumb}">
353
+                    <Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" />
354
+                </ControlTemplate>
355
+            </Setter.Value>
356
+        </Setter>
357
+    </Style>
358
+    <Style TargetType="{x:Type DataGridRowHeader}">
359
+        <Setter Property="Template">
360
+            <Setter.Value>
361
+                <ControlTemplate TargetType="{x:Type DataGridRowHeader}">
362
+                    <Grid>
363
+                        <VisualStateManager.VisualStateGroups>
364
+                            <VisualStateGroup x:Name="CommonStates">
365
+                                <VisualState x:Name="Normal" />
366
+                                <VisualState x:Name="Normal_CurrentRow" />
367
+                                <VisualState x:Name="Unfocused_EditingRow" />
368
+                                <VisualState x:Name="Normal_EditingRow" />
369
+                                <VisualState x:Name="MouseOver">
370
+                                    <!--
371
+                                        <Storyboard>
372
+                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="rowHeaderBorder" Storyboard.TargetProperty="(Panel.Background).                         (GradientBrush.GradientStops)[1].(GradientStop.Color)">
373
+                                        <EasingColorKeyFrame KeyTime="0" Value="{StaticResource ControlMouseOverColor}" />
374
+                                        </ColorAnimationUsingKeyFrames>
375
+                                        </Storyboard>
376
+                                    -->
377
+                                </VisualState>
378
+                                <VisualState x:Name="MouseOver_CurrentRow" />
379
+                                <VisualState x:Name="MouseOver_Unfocused_EditingRow" />
380
+                                <VisualState x:Name="MouseOver_EditingRow" />
381
+                                <VisualState x:Name="MouseOver_Unfocused_Selected" />
382
+                                <VisualState x:Name="MouseOver_Selected" />
383
+                                <VisualState x:Name="MouseOver_Unfocused_CurrentRow_Selected" />
384
+                                <VisualState x:Name="MouseOver_CurrentRow_Selected" />
385
+                                <VisualState x:Name="Unfocused_Selected" />
386
+                                <VisualState x:Name="Unfocused_CurrentRow_Selected" />
387
+                                <VisualState x:Name="Normal_CurrentRow_Selected" />
388
+                                <VisualState x:Name="Normal_Selected" />
389
+                            </VisualStateGroup>
390
+                        </VisualStateManager.VisualStateGroups>
391
+                        <Border x:Name="rowHeaderBorder"
392
+                                Background="#DBE7EB"
393
+                                BorderBrush="{DynamicResource DataGridRow_Normal_BorderBrush}"
394
+                                BorderThickness="0,0,1,0"
395
+                                Visibility="Visible">
396
+                            <!--
397
+                                <Border.BorderBrush>
398
+                                <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
399
+                                <GradientStop Offset="0" Color="{DynamicResource BorderDarkColor}" />
400
+                                <GradientStop Offset="1" Color="{DynamicResource BorderLightColor}" />
401
+                                </LinearGradientBrush>
402
+                                </Border.BorderBrush>
403
+                            -->
404
+                            <!--
405
+                                <Border.Background>
406
+                                <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
407
+                                <GradientStop Offset="0" Color="{DynamicResource ControlMediumColor}" />
408
+                                <GradientStop Offset="1" Color="{DynamicResource ControlLightColor}" />
409
+                                </LinearGradientBrush>
410
+                                </Border.Background>
411
+                            -->
412
+                            <StackPanel Orientation="Horizontal">
413
+                                <ContentPresenter VerticalAlignment="Center" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
414
+                            </StackPanel>
415
+                        </Border>
416
+
417
+                        <Thumb x:Name="PART_TopHeaderGripper"
418
+                               VerticalAlignment="Top"
419
+                               Style="{StaticResource RowHeaderGripperStyle}" />
420
+                        <Thumb x:Name="PART_BottomHeaderGripper"
421
+                               VerticalAlignment="Bottom"
422
+                               Style="{StaticResource RowHeaderGripperStyle}" />
423
+                    </Grid>
424
+                </ControlTemplate>
425
+            </Setter.Value>
426
+        </Setter>
427
+    </Style>
428
+
429
+    <!--  DataGridColumnHeader样式和模板  -->
430
+    <Style x:Key="ColumnHeaderGripperStyle" TargetType="{x:Type Thumb}">
431
+        <Setter Property="Width" Value="8" />
432
+        <Setter Property="Background" Value="Transparent" />
433
+        <Setter Property="Cursor" Value="SizeWE" />
434
+        <Setter Property="Template">
435
+            <Setter.Value>
436
+                <ControlTemplate TargetType="{x:Type Thumb}">
437
+                    <Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" />
438
+                </ControlTemplate>
439
+            </Setter.Value>
440
+        </Setter>
441
+    </Style>
442
+    <Style TargetType="{x:Type DataGridColumnHeader}">
443
+        <Setter Property="FontSize" Value="12" />
444
+        <Setter Property="Foreground" Value="{DynamicResource DataGridColumnHeader_Normal_Foreground}" />
445
+        <Setter Property="VerticalContentAlignment" Value="Center" />
446
+        <Setter Property="BorderBrush" Value="{DynamicResource DataGridColumnHeader_Normal_BorderBrush}" />
447
+        <Setter Property="HorizontalContentAlignment" Value="Center" />
448
+        <Setter Property="VerticalContentAlignment" Value="Center" />
449
+        <Setter Property="BorderThickness" Value="{DynamicResource DataGridColumnHeader_Normal_BorderThickness}" />
450
+        <Setter Property="Height" Value="27" />
451
+        <Setter Property="Template">
452
+            <Setter.Value>
453
+                <ControlTemplate TargetType="{x:Type DataGridColumnHeader}">
454
+                    <Grid>
455
+                        <Border x:Name="columnHeaderBorder"
456
+                                BorderBrush="{TemplateBinding BorderBrush}"
457
+                                BorderThickness="{TemplateBinding BorderThickness}"
458
+                                Padding="3">
459
+                            <!--
460
+                                <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
461
+                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
462
+                                SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
463
+                            -->
464
+                            <Grid>
465
+                                <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
466
+                                                  VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
467
+                                                  SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
468
+                            </Grid>
469
+                        </Border>
470
+
471
+                        <Thumb x:Name="PART_LeftHeaderGripper"
472
+                               HorizontalAlignment="Left"
473
+                               Style="{StaticResource ColumnHeaderGripperStyle}" />
474
+                        <Thumb x:Name="PART_RightHeaderGripper"
475
+                               HorizontalAlignment="Right"
476
+                               Style="{StaticResource ColumnHeaderGripperStyle}" />
477
+                    </Grid>
478
+                </ControlTemplate>
479
+            </Setter.Value>
480
+        </Setter>
481
+    </Style>
482
+
483
+    <!--  DataGridColumnHeadersPresenter样式和模板  -->
484
+    <Style TargetType="{x:Type DataGridColumnHeadersPresenter}">
485
+        <Setter Property="Template">
486
+            <Setter.Value>
487
+                <ControlTemplate TargetType="{x:Type DataGridColumnHeadersPresenter}">
488
+                    <Grid Background="{TemplateBinding Background}">
489
+                        <DataGridColumnHeader x:Name="PART_FillerColumnHeader"
490
+                                              Background="Red"
491
+                                              IsHitTestVisible="False" />
492
+                        <ItemsPresenter />
493
+                    </Grid>
494
+                </ControlTemplate>
495
+            </Setter.Value>
496
+        </Setter>
497
+    </Style>
498
+
499
+    <!--  DataBoxBase样式和模板  -->
500
+    <Style BasedOn="{StaticResource {x:Type DataGrid}}" TargetType="{x:Type dhcc:DHCCDataGrid}">
501
+        <Setter Property="dhcc:FocusManager.IsInternalKeyboardControlling" Value="True" />
502
+    </Style>
503
+
504
+</ResourceDictionary>

+ 9
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/FocusAdorner.xaml View File

@@ -0,0 +1,9 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3
+                    xmlns:dhcc="http://www.dhcc.com.cn">
4
+    <Style TargetType="dhcc:FocusAdorner" >
5
+        <Setter Property="BorderBrush" Value="{DynamicResource FocusAdorner_Normal_BorderBrush}"/>
6
+        <Setter Property="IsHitTestVisible" Value="false"/>
7
+        <Setter Property="BorderThickness" Value="{DynamicResource FocusAdorner_Normal_BorderThickness}"/>
8
+    </Style>
9
+</ResourceDictionary>

+ 19
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/GroupBox.xaml View File

@@ -0,0 +1,19 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+    <Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource {x:Type GroupBox}}">
4
+        <Setter Property="Width" Value="{DynamicResource GroupBox_Normal_Width}" />
5
+        <Setter Property="Height" Value="{DynamicResource GroupBox_Normal_Height}" />
6
+        <Setter Property="VerticalAlignment" Value="{DynamicResource GroupBox_Normal_VerticalAlignment}" />
7
+        <Setter Property="HorizontalAlignment" Value="{DynamicResource GroupBox_Normal_HorizontalAlignment}" />
8
+        <Setter Property="Margin" Value="{DynamicResource GroupBox_Normal_Margin}" />
9
+        <Setter Property="HeaderTemplate">
10
+            <Setter.Value>
11
+                <DataTemplate>
12
+                    <TextBlock Foreground="{DynamicResource GroupBox_Normal_Foreground}" Text="{Binding}" />
13
+                </DataTemplate>
14
+            </Setter.Value>
15
+        </Setter>
16
+        <Setter Property="BorderBrush" Value="{DynamicResource GroupBox_Normal_BorderBrush}" />
17
+    </Style>
18
+
19
+</ResourceDictionary>

+ 13
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/HotKey.xaml View File

@@ -0,0 +1,13 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3
+                    xmlns:dhcc="http://www.dhcc.com.cn">
4
+
5
+    <!--添加按钮-->
6
+    <BitmapImage x:Key="HotKey_Add" UriSource="/TellerSys.BlueThemes;component/Resources/HotKey_add.png" />
7
+    <!--删除按钮-->
8
+    <BitmapImage x:Key="HotKey_Del" UriSource="/TellerSys.BlueThemes;component/Resources/HotKey_del.png" />
9
+    <!--展开控件背景:白色-->
10
+    <ImageBrush x:Key="HotKey_Header" 
11
+                ImageSource="/TellerSys.BlueThemes;component/Resources/HotKey_ExpHeaderBg_White.png"></ImageBrush>
12
+
13
+</ResourceDictionary>

+ 27
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/Lable.xaml View File

@@ -0,0 +1,27 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+
4
+    <Style TargetType="Label"  BasedOn="{StaticResource {x:Type Label}}">
5
+        <Setter Property="HorizontalContentAlignment" Value="Left"/>
6
+        <Setter Property="VerticalContentAlignment" Value="Top"/>
7
+        <Setter Property="Template">
8
+            <Setter.Value>
9
+                <ControlTemplate TargetType="Label">
10
+                    <Border>
11
+                        <ContentPresenter 
12
+            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
13
+            VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
14
+            RecognizesAccessKey="True"/>
15
+                    </Border>
16
+                    <ControlTemplate.Triggers>
17
+                        <Trigger Property="IsEnabled" Value="false">
18
+                            <Setter Property="Foreground"
19
+                    Value="{DynamicResource Lable_Enable_Foreground}"/>
20
+                        </Trigger>
21
+                    </ControlTemplate.Triggers>
22
+                </ControlTemplate>
23
+            </Setter.Value>
24
+        </Setter>
25
+    </Style>
26
+
27
+</ResourceDictionary>

+ 68
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/ListBox.xaml View File

@@ -0,0 +1,68 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+
4
+    <Style TargetType="ListBox" BasedOn="{StaticResource {x:Type ListBox}}">
5
+        <Setter Property="SnapsToDevicePixels" Value="true"/>
6
+        <Setter Property="OverridesDefaultStyle" Value="true"/>
7
+        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
8
+        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
9
+        <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
10
+        <Setter Property="MinWidth" Value="120"/>
11
+        <Setter Property="MinHeight" Value="95"/>
12
+        <Setter Property="Template">
13
+            <Setter.Value>
14
+                <ControlTemplate TargetType="ListBox">
15
+                    <Border 
16
+          Name="Border" 
17
+          Background="{DynamicResource ListBox_Normal_Background}"
18
+          BorderBrush="{DynamicResource ListBox_Normal_BorderBrush}"
19
+          BorderThickness="{DynamicResource ListBox_Normal_BorderThickness}"
20
+          CornerRadius="2">
21
+                        <ScrollViewer 
22
+            Margin="0"
23
+            Focusable="false">
24
+                            <StackPanel Margin="2" IsItemsHost="True" />
25
+                        </ScrollViewer>
26
+                    </Border>
27
+                    <ControlTemplate.Triggers>
28
+                        <Trigger Property="IsEnabled" Value="false">
29
+                            <Setter TargetName="Border" Property="Background"
30
+                    Value="{DynamicResource ListBox_Enable_Background}" />
31
+                            <Setter TargetName="Border" Property="BorderBrush"
32
+                    Value="{DynamicResource ListBox_Enable_BorderBrush}" />
33
+                        </Trigger>
34
+                        <Trigger Property="IsGrouping" Value="true">
35
+                            <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
36
+                        </Trigger>
37
+                    </ControlTemplate.Triggers>
38
+                </ControlTemplate>
39
+            </Setter.Value>
40
+        </Setter>
41
+    </Style>
42
+
43
+
44
+    <Style x:Key="{x:Type ListBoxItem}" TargetType="ListBoxItem">
45
+        <Setter Property="SnapsToDevicePixels" Value="true"/>
46
+        <Setter Property="OverridesDefaultStyle" Value="true"/>
47
+        <Setter Property="Template">
48
+            <Setter.Value>
49
+                <ControlTemplate TargetType="ListBoxItem">
50
+                    <Border Name="Border" Padding="2" SnapsToDevicePixels="true">
51
+                        <ContentPresenter />
52
+                    </Border>
53
+                    <ControlTemplate.Triggers>
54
+                        <Trigger Property="IsSelected" Value="true">
55
+                            <Setter TargetName="Border" Property="Background"
56
+                    Value="{DynamicResource ListBoxItem_Select_Background}"/>
57
+                        </Trigger>
58
+                        <Trigger Property="IsEnabled" Value="false">
59
+                            <Setter Property="Foreground"
60
+                    Value="{StaticResource ListBoxItem_Enable_Foreground}"/>
61
+                        </Trigger>
62
+                    </ControlTemplate.Triggers>
63
+                </ControlTemplate>
64
+            </Setter.Value>
65
+        </Setter>
66
+    </Style>
67
+
68
+</ResourceDictionary>

+ 68
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/PasswordBox.xaml View File

@@ -0,0 +1,68 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
3
+                    xmlns:dhcc="http://www.dhcc.com.cn"
4
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
5
+
6
+    <Style TargetType="{x:Type PasswordBox}"  BasedOn="{StaticResource {x:Type PasswordBox}}">
7
+        <Setter Property="dhcc:FocusManager.FocusHandled" Value="{x:Static dhcc:PasswordBoxHelper.PasswordBoxFocusHandled}" />
8
+        <Setter Property="dhcc:FocusManager.IsInternalKeyboardControlling" Value="True" />
9
+        <Setter Property="dhcc:FocusManagerExt.IsFocusAdorner" Value="True" />
10
+        <Setter Property="dhcc:PasswordBoxHelper.IsAutoSelectedAll" Value="True"/>
11
+        <Setter Property="dhcc:FocusManagerExt.AssertNotEmpty" Value="True" />
12
+        <Setter Property="dhcc:FocusManagerExt.ValidationField" Value="Password" />
13
+        <Setter Property="dhcc:FocusManagerExt.FieldEmptyPolicies">
14
+            <Setter.Value>
15
+                <dhcc:FieldPolicyCollection>
16
+                    <dhcc:ShowTipPolicy />                    
17
+                </dhcc:FieldPolicyCollection>
18
+            </Setter.Value>
19
+        </Setter>
20
+        <Setter Property="dhcc:FocusManagerExt.RegexValidateErrorPolicies">
21
+            <Setter.Value>
22
+                <dhcc:FieldPolicyCollection>
23
+                    <dhcc:ShowTipPolicy/>                    
24
+                </dhcc:FieldPolicyCollection>
25
+            </Setter.Value>
26
+        </Setter>
27
+        <Setter Property="SnapsToDevicePixels" Value="true"/>
28
+        <Setter Property="OverridesDefaultStyle" Value="true"/>
29
+        <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
30
+        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
31
+        <Setter Property="FontFamily" Value="Verdana"/>
32
+        <Setter Property="PasswordChar" Value="{DynamicResource PasswordBox_Normal_PasswordChar}"/>
33
+        <Setter Property="MinWidth" Value="120"/>
34
+        <Setter Property="MinHeight" Value="20"/>
35
+        <Setter Property="AllowDrop" Value="true"/>
36
+        <Setter Property="Template">
37
+            <Setter.Value>
38
+                <ControlTemplate TargetType="{x:Type PasswordBox}">
39
+                    <Border 
40
+          Name="Border"
41
+          CornerRadius="2" 
42
+          Padding="2" 
43
+          Background="{DynamicResource PasswordBox_Normal_Background}"
44
+          BorderBrush="{DynamicResource TextBox_Normal_BorderBrush}"
45
+          BorderThickness="{DynamicResource TextBox_Normal_BorderThickness}" >
46
+                        <ScrollViewer x:Name="PART_ContentHost" />
47
+                    </Border>
48
+                    <ControlTemplate.Triggers>                        
49
+                        <Trigger Property="IsMouseOver" Value="true">
50
+                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource PasswordBox_MouseOver_Background}"/>
51
+                            <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource PasswordBox_MouseOver_BorderBrush}" />
52
+                            <Setter TargetName="Border" Property="BorderThickness" Value="{DynamicResource PasswordBox_MouseOver_BorderThickness}"/>
53
+                        </Trigger>
54
+                        <Trigger Property="dhcc:FocusManagerExt.AssertNotEmpty" Value="True">
55
+                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource TextBox_AssertNotEmpty_Background}" />
56
+                        </Trigger>
57
+                        <Trigger Property="IsEnabled" Value="False">
58
+                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource TextBox_Enable_Background}"/>
59
+                            <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource TextBox_Enable_BorderBrush}"/>
60
+                            <Setter Property="Foreground" Value="{DynamicResource TextBox_Enable_Foreground}"/>
61
+                        </Trigger>
62
+                    </ControlTemplate.Triggers>
63
+                </ControlTemplate>
64
+            </Setter.Value>
65
+        </Setter>
66
+    </Style>
67
+
68
+</ResourceDictionary>

+ 55
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/RadioButton.xaml View File

@@ -0,0 +1,55 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3
+                    xmlns:dhcc="http://www.dhcc.com.cn"
4
+                    xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero">
5
+
6
+    <Style BasedOn="{StaticResource {x:Type RadioButton}}" TargetType="{x:Type RadioButton}">
7
+        <Setter Property="dhcc:FocusManager.FocusHandled" Value="{x:Static dhcc:ControlHelper.EmptyFocusHandled}" />
8
+        <Setter Property="dhcc:FocusManager.IsInternalKeyboardControlling" Value="True" />
9
+        <Setter Property="dhcc:FocusManagerExt.IsFocusAdorner" Value="True" />
10
+        <Setter Property="SnapsToDevicePixels" Value="true" />
11
+        <Setter Property="OverridesDefaultStyle" Value="true" />
12
+        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
13
+        <Setter Property="Template">
14
+            <Setter.Value>
15
+                <ControlTemplate TargetType="{x:Type RadioButton}">
16
+                    <BulletDecorator x:Name="OutsideName" Background="Transparent">
17
+                        <BulletDecorator.Bullet>
18
+                            <Grid Width="13" Height="13">
19
+                                <Ellipse x:Name="Border"
20
+                                         Fill="{DynamicResource RadioButton_Normal_Background}"
21
+                                         Stroke="{DynamicResource RadioButton_Normal_BorderBrush}"
22
+                                         StrokeThickness="1" />
23
+                                <Ellipse x:Name="CheckMark"
24
+                                         Margin="4"
25
+                                         Fill="{DynamicResource RadioButton_Normal_Foreground}" />
26
+                            </Grid>
27
+                        </BulletDecorator.Bullet>
28
+                        <ContentPresenter Margin="4,0,0,0"
29
+                                          HorizontalAlignment="Left"
30
+                                          VerticalAlignment="Center"
31
+                                          RecognizesAccessKey="True" />
32
+                    </BulletDecorator>
33
+                    <ControlTemplate.Triggers>
34
+                        <Trigger Property="IsChecked" Value="false">
35
+                            <Setter TargetName="CheckMark" Property="Visibility" Value="Collapsed" />
36
+                        </Trigger>
37
+                        <Trigger Property="IsMouseOver" Value="true">
38
+                            <Setter TargetName="Border" Property="Fill" Value="{DynamicResource RadioButton_MouseOver_Background}" />
39
+                            <Setter TargetName="Border" Property="Stroke" Value="{DynamicResource RadioButton_MouseOver_BorderBrush}" />
40
+                        </Trigger>
41
+                        <Trigger Property="IsPressed" Value="true">
42
+                            <Setter TargetName="Border" Property="Fill" Value="{DynamicResource RadioButton_Pressed_Background}" />
43
+                        </Trigger>
44
+                        <Trigger Property="IsEnabled" Value="false">
45
+                            <Setter TargetName="Border" Property="Fill" Value="{DynamicResource RadioButton_Enable_Background}" />
46
+                            <Setter TargetName="Border" Property="Stroke" Value="{DynamicResource RadioButton_Enable_BorderBrush}" />
47
+                            <Setter Property="Foreground" Value="{DynamicResource RadioButton_Enable_Foreground}" />
48
+                        </Trigger>
49
+                    </ControlTemplate.Triggers>
50
+                </ControlTemplate>
51
+            </Setter.Value>
52
+        </Setter>
53
+    </Style>
54
+
55
+</ResourceDictionary>

+ 308
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/ScrollBar.xaml View File

@@ -0,0 +1,308 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3
+                    xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
4
+                    xmlns:dhcc="http://www.dhcc.com.cn">
5
+
6
+    <!--ScrollBarLineButton-->
7
+    <Style x:Key="ScrollBarLineButtonVer" TargetType="{x:Type RepeatButton}">
8
+        <Setter Property="SnapsToDevicePixels" Value="True"/>
9
+        <Setter Property="OverridesDefaultStyle" Value="true"/>
10
+        <Setter Property="Focusable" Value="false"/>
11
+        <Setter Property="Background" Value="{DynamicResource ScrollBarVerticalButton_Normal_Background}"/>
12
+        <Setter Property="BorderBrush" Value="{DynamicResource ScrollBarVerticalButton_Normal_BorderBrush}"/>
13
+        <Setter Property="BorderThickness" Value="{DynamicResource ScrollBarVerticalButton_Normal_BorderThickness}"/>
14
+        <Setter Property="Template">
15
+            <Setter.Value>
16
+                <ControlTemplate TargetType="{x:Type RepeatButton}">
17
+                    <Border 
18
+          Name="Border"
19
+          Margin="2" 
20
+          CornerRadius="2" 
21
+          Background="{TemplateBinding Background}"
22
+          BorderBrush="{TemplateBinding BorderBrush}"
23
+          BorderThickness="{TemplateBinding BorderThickness}">
24
+                        <Path 
25
+            HorizontalAlignment="Center"
26
+            VerticalAlignment="Center"
27
+            Fill="{DynamicResource ScrollBarVerticalButton_Normal_Foreground}"
28
+            Data="{Binding Path=Content,RelativeSource={RelativeSource TemplatedParent}}" />
29
+                    </Border>
30
+                </ControlTemplate>
31
+            </Setter.Value>
32
+        </Setter>
33
+        <Style.Triggers>
34
+            <Trigger Property="IsEnabled" Value="false">
35
+                <Setter Property="Background" Value="{DynamicResource ScrollBarVerticalButton_Enable_Background}" />
36
+                <Setter Property="BorderBrush" Value="{DynamicResource ScrollBarVerticalButton_Enable_BorderBrush}" />
37
+                <Setter Property="Foreground" Value="{DynamicResource ScrollBarVerticalButton_Enable_Foreground}"/>
38
+            </Trigger>
39
+            <Trigger Property="IsMouseOver" Value="true">
40
+                <Setter Property="Background" Value="{DynamicResource ScrollBarVerticalButton_MouseOver_Background}" />
41
+                <Setter Property="BorderBrush" Value="{DynamicResource ScrollBarVerticalButton_MouseOver_BorderBrush}" />
42
+                <Setter  Property="BorderThickness" Value="{DynamicResource ScrollBarVerticalButton_MouseOver_BorderThickness}" />
43
+            </Trigger>
44
+        </Style.Triggers>
45
+    </Style>
46
+
47
+    <Style x:Key="ScrollBarLineButtonHor" TargetType="{x:Type RepeatButton}">
48
+        <Setter Property="SnapsToDevicePixels" Value="True"/>
49
+        <Setter Property="OverridesDefaultStyle" Value="true"/>
50
+        <Setter Property="Focusable" Value="false"/>
51
+        <Setter Property="Background" Value="{DynamicResource ScrollBarHorizontalButton_Normal_Background}"/>
52
+        <Setter Property="BorderBrush" Value="{DynamicResource ScrollBarHorizontalButton_Normal_BorderBrush}"/>
53
+        <Setter Property="BorderThickness" Value="{DynamicResource ScrollBarHorizontalButton_Normal_BorderThickness}"/>
54
+        <Setter Property="Template">
55
+            <Setter.Value>
56
+                <ControlTemplate TargetType="{x:Type RepeatButton}">
57
+                    <Border 
58
+          Name="Border"
59
+          Margin="2" 
60
+          CornerRadius="2" 
61
+          Background="{TemplateBinding Background}"
62
+          BorderBrush="{TemplateBinding BorderBrush}"
63
+          BorderThickness="{TemplateBinding BorderThickness}">
64
+                        <Path 
65
+            HorizontalAlignment="Center"
66
+            VerticalAlignment="Center"
67
+            Fill="{DynamicResource ScrollBarHorizontalButton_Normal_Foreground}"
68
+            Data="{Binding Path=Content,RelativeSource={RelativeSource TemplatedParent}}" />
69
+                    </Border>
70
+                </ControlTemplate>
71
+            </Setter.Value>
72
+        </Setter>
73
+        <Style.Triggers>
74
+            <Trigger Property="IsEnabled" Value="false">
75
+                <Setter Property="Background" Value="{DynamicResource ScrollBarHorizontalButton_Enable_Background}" />
76
+                <Setter Property="BorderBrush" Value="{DynamicResource ScrollBarHorizontalButton_Enable_BorderBrush}" />
77
+                <Setter Property="Foreground" Value="{DynamicResource ScrollBarHorizontalButton_Enable_Foreground}"/>
78
+            </Trigger>
79
+            <Trigger Property="IsMouseOver" Value="true">
80
+                <Setter Property="Background" Value="{DynamicResource ScrollBarHorizontalButton_MouseOver_Background}" />
81
+                <Setter Property="BorderBrush" Value="{DynamicResource ScrollBarHorizontalButton_MouseOver_BorderBrush}" />
82
+                <Setter  Property="BorderThickness" Value="{DynamicResource ScrollBarHorizontalButton_MouseOver_BorderThickness}" />
83
+            </Trigger>
84
+        </Style.Triggers>
85
+    </Style>
86
+    <!--RepeatButton-->
87
+    <Style x:Key="ScrollBarPageButton" TargetType="{x:Type RepeatButton}">
88
+        <Setter Property="SnapsToDevicePixels" Value="True"/>
89
+        <Setter Property="OverridesDefaultStyle" Value="true"/>
90
+        <Setter Property="IsTabStop" Value="false"/>
91
+        <Setter Property="Focusable" Value="false"/>
92
+        <Setter Property="Template">
93
+            <Setter.Value>
94
+                <ControlTemplate TargetType="{x:Type RepeatButton}">
95
+                    <Border Background="Transparent" />
96
+                </ControlTemplate>
97
+            </Setter.Value>
98
+        </Setter>
99
+    </Style>
100
+<!--ScrollBarThumb-->
101
+    <Style x:Key="ScrollBarThumbVer" TargetType="{x:Type Thumb}">
102
+        <Setter Property="SnapsToDevicePixels" Value="True"/>
103
+        <Setter Property="OverridesDefaultStyle" Value="true"/>
104
+        <Setter Property="IsTabStop" Value="false"/>
105
+        <Setter Property="Focusable" Value="false"/>
106
+        <Setter Property="Template">
107
+            <Setter.Value>
108
+                <ControlTemplate TargetType="{x:Type Thumb}">
109
+                    <Border 
110
+          CornerRadius="2" 
111
+                        x:Name="Border"
112
+          Background="{DynamicResource ScrollBarVerticalScrollButton_Normal_Background}"
113
+          BorderBrush="{DynamicResource ScrollBarVerticalScrollButton_Normal_BorderBrush}"
114
+          BorderThickness="{DynamicResource ScrollBarVerticalScrollButton_Normal_BorderThickness}" >
115
+                        <Canvas Width="8"
116
+                                Height="8"
117
+                                HorizontalAlignment="Center"
118
+                                VerticalAlignment="Center">
119
+                            <Canvas.Resources>
120
+                                <Style TargetType="{x:Type Line}">
121
+                                    <Setter Property="Stroke" Value="{DynamicResource ScrollBarVerticalScrollButton_Normal_Foreground}"/>
122
+                                    <Setter Property="StrokeThickness" Value="1"/>
123
+                                </Style>
124
+                            </Canvas.Resources>
125
+                            <Line X1="0" Y1="0" X2="8" Y2="0" />
126
+                            <Line X1="0" Y1="4" X2="8" Y2="4"/>
127
+                            <Line X1="0" Y1="8" X2="8" Y2="8"/>
128
+                        </Canvas>
129
+                    </Border>
130
+                    <ControlTemplate.Triggers>
131
+                        <Trigger Property="IsEnabled" Value="false">
132
+                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource ScrollBarVerticalScrollButton_Enable_Background}" />
133
+                            <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource ScrollBarVerticalScrollButton_Enable_BorderBrush}" />
134
+                            <Setter Property="Foreground" Value="{DynamicResource ScrollBarVerticalScrollButton_Enable_Foreground}"/>
135
+                        </Trigger>
136
+                        <Trigger Property="IsMouseOver" Value="true">
137
+                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource ScrollBarVerticalScrollButton_MouseOver_Background}" />
138
+                            <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource ScrollBarVerticalScrollButton_MouseOver_BorderBrush}" />
139
+                            <Setter TargetName="Border" Property="BorderThickness" Value="{DynamicResource ScrollBarVerticalScrollButton_MouseOver_BorderThickness}" />
140
+                        </Trigger>
141
+                    </ControlTemplate.Triggers>
142
+                </ControlTemplate>
143
+            </Setter.Value>
144
+        </Setter>
145
+    </Style>
146
+
147
+    <Style x:Key="ScrollBarThumbHor" TargetType="{x:Type Thumb}">
148
+        <Setter Property="SnapsToDevicePixels" Value="True"/>
149
+        <Setter Property="OverridesDefaultStyle" Value="true"/>
150
+        <Setter Property="IsTabStop" Value="false"/>
151
+        <Setter Property="Focusable" Value="false"/>
152
+        <Setter Property="Template">
153
+            <Setter.Value>
154
+                <ControlTemplate TargetType="{x:Type Thumb}">
155
+                    <Border 
156
+          CornerRadius="2" 
157
+                        x:Name="Border"
158
+          Background="{DynamicResource ScrollBarHorizontalScrollButton_Normal_Background}"
159
+          BorderBrush="{DynamicResource ScrollBarHorizontalScrollButton_Normal_BorderBrush}"
160
+          BorderThickness="1" >
161
+                        <Canvas Width="8"
162
+                                Height="8"
163
+                                HorizontalAlignment="Center"
164
+                                VerticalAlignment="Center">
165
+                            <Canvas.Resources>
166
+                                <Style TargetType="{x:Type Line}">
167
+                                    <Setter Property="Stroke" Value="{DynamicResource ScrollBarHorizontalScrollButton_Normal_Foreground}"/>
168
+                                    <Setter Property="StrokeThickness" Value="1"/>
169
+                                </Style>
170
+                            </Canvas.Resources>
171
+                            <Line X1="0" Y1="0" X2="0" Y2="8" />
172
+                            <Line X1="4" Y1="0" X2="4" Y2="8"/>
173
+                            <Line X1="8" Y1="0" X2="8" Y2="8"/>
174
+                        </Canvas>
175
+                    </Border>
176
+                    <ControlTemplate.Triggers>
177
+                        <Trigger Property="IsEnabled" Value="false">
178
+                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource ScrollBarHorizontalScrollButton_Enable_Background}" />
179
+                            <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource ScrollBarHorizontalScrollButton_Enable_BorderBrush}" />
180
+                            <Setter Property="Foreground" Value="{DynamicResource ScrollBarHorizontalScrollButton_Enable_Foreground}"/>
181
+                        </Trigger>
182
+                        <Trigger Property="IsMouseOver" Value="true">
183
+                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource ScrollBarHorizontalScrollButton_MouseOver_Background}" />
184
+                            <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource ScrollBarHorizontalScrollButton_MouseOver_BorderBrush}" />
185
+                            <Setter TargetName="Border" Property="BorderThickness" Value="{DynamicResource ScrollBarHorizontalScrollButton_MouseOver_BorderThickness}" />
186
+                        </Trigger>
187
+                    </ControlTemplate.Triggers>
188
+                </ControlTemplate>
189
+            </Setter.Value>
190
+        </Setter>
191
+    </Style>
192
+    <!--VerticalScrollBar-->
193
+    <ControlTemplate x:Key="VerticalScrollBar" TargetType="{x:Type ScrollBar}">
194
+        <Grid >
195
+            <Grid.RowDefinitions>
196
+                <RowDefinition MaxHeight="18"/>
197
+                <RowDefinition Height="0.00001*"/>
198
+                <RowDefinition MaxHeight="18"/>
199
+            </Grid.RowDefinitions>
200
+            <Border
201
+      Grid.RowSpan="3"
202
+      CornerRadius="2" 
203
+      Background="{DynamicResource ScrollBarVertical_Normal_Background}" 
204
+      BorderBrush="{DynamicResource ScrollBarVertical_Normal_BorderBrush}"
205
+      BorderThickness="{DynamicResource ScrollBarVertical_Normal_BorderThickness}"/>
206
+            <RepeatButton 
207
+      Grid.Row="0"                           
208
+      Style="{StaticResource ScrollBarLineButtonVer}"
209
+      Height="18"
210
+      Command="ScrollBar.LineUpCommand"
211
+      Content="M 0 4 L 8 4 L 4 0 Z" />
212
+            <Track 
213
+      Name="PART_Track"
214
+      Grid.Row="1"
215
+      IsDirectionReversed="true">
216
+                <Track.DecreaseRepeatButton>
217
+                    <RepeatButton 
218
+          Style="{StaticResource ScrollBarPageButton}"
219
+          Command="ScrollBar.PageUpCommand" />
220
+                </Track.DecreaseRepeatButton>
221
+                <Track.Thumb>
222
+                    <Thumb 
223
+          Style="{StaticResource ScrollBarThumbVer}" 
224
+          Margin="2,0,2,0"  />
225
+                </Track.Thumb>
226
+                <Track.IncreaseRepeatButton>
227
+                    <RepeatButton 
228
+          Style="{StaticResource ScrollBarPageButton}"
229
+          Command="ScrollBar.PageDownCommand" />
230
+                </Track.IncreaseRepeatButton>
231
+            </Track>
232
+            <RepeatButton 
233
+      Grid.Row="3" 
234
+      Style="{StaticResource ScrollBarLineButtonVer}"
235
+      Height="18"
236
+      Command="ScrollBar.LineDownCommand"
237
+      Content="M 0 0 L 4 4 L 8 0 Z"/>
238
+        </Grid>
239
+    </ControlTemplate>
240
+<!--HorizontalScrollBar-->
241
+    <ControlTemplate x:Key="HorizontalScrollBar" TargetType="{x:Type ScrollBar}">
242
+        <Grid >
243
+            <Grid.ColumnDefinitions>
244
+                <ColumnDefinition MaxWidth="18"/>
245
+                <ColumnDefinition Width="0.00001*"/>
246
+                <ColumnDefinition MaxWidth="18"/>
247
+            </Grid.ColumnDefinitions>
248
+            <Border
249
+              Grid.ColumnSpan="3"
250
+              CornerRadius="2" 
251
+              Background="{DynamicResource ScrollBarHorizontal_Normal_Background}"
252
+              BorderBrush="{DynamicResource ScrollBarHorizontal_Normal_BorderBrush}"
253
+              BorderThickness="{DynamicResource ScrollBarHorizontal_Normal_BorderThickness}"/>
254
+            <RepeatButton 
255
+      Grid.Column="0"                           
256
+      Style="{StaticResource ScrollBarLineButtonHor}"
257
+      Width="18"
258
+      Command="ScrollBar.LineLeftCommand"
259
+      Content="M 4 0 L 4 8 L 0 4 Z" />
260
+            <Track 
261
+      Name="PART_Track"
262
+      Grid.Column="1"
263
+      IsDirectionReversed="False">
264
+                <Track.DecreaseRepeatButton>
265
+                    <RepeatButton 
266
+          Style="{StaticResource ScrollBarPageButton}"
267
+          Command="ScrollBar.PageLeftCommand" />
268
+                </Track.DecreaseRepeatButton>
269
+                <Track.Thumb>
270
+                    <Thumb 
271
+          Style="{StaticResource ScrollBarThumbHor}" 
272
+          Margin="0,2,0,2"  />
273
+                </Track.Thumb>
274
+                <Track.IncreaseRepeatButton>
275
+                    <RepeatButton 
276
+          Style="{StaticResource ScrollBarPageButton}"
277
+          Command="ScrollBar.PageRightCommand" />
278
+                </Track.IncreaseRepeatButton>
279
+            </Track>
280
+            <RepeatButton 
281
+      Grid.Column="3" 
282
+      Style="{StaticResource ScrollBarLineButtonHor}"
283
+      Width="18"
284
+      Command="ScrollBar.LineRightCommand"
285
+      Content="M 0 0 L 4 4 L 0 8 Z"/>
286
+        </Grid>
287
+    </ControlTemplate>
288
+<!--BaseScrollBar-->
289
+    <Style TargetType="{x:Type ScrollBar}"   BasedOn="{StaticResource {x:Type ScrollBar}}">
290
+        <Setter Property="dhcc:FocusManager.OnlyMouseControlHandled" Value="{x:Static dhcc:ControlHelper.EmptyMouseHandled}" />
291
+        <Setter Property="SnapsToDevicePixels" Value="True"/>
292
+        <Setter Property="OverridesDefaultStyle" Value="true"/>
293
+        <Style.Triggers>
294
+            <Trigger Property="Orientation" Value="Horizontal">
295
+                <Setter Property="Width" Value="Auto"/>
296
+                <Setter Property="Height" Value="18" />
297
+                <Setter Property="Template" Value="{StaticResource HorizontalScrollBar}" />
298
+            </Trigger>
299
+            <Trigger Property="Orientation" Value="Vertical">
300
+                <Setter Property="Width" Value="18"/>
301
+                <Setter Property="Height" Value="Auto" />
302
+                <Setter Property="Template" Value="{StaticResource VerticalScrollBar}" />
303
+            </Trigger>
304
+        </Style.Triggers>
305
+    </Style>
306
+
307
+
308
+</ResourceDictionary>

+ 9
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/TextBlock.xaml View File

@@ -0,0 +1,9 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+    <Style TargetType="TextBlock"  BasedOn="{StaticResource {x:Type TextBlock}}">
4
+        <Setter Property="Width" Value="{DynamicResource GroupBox_Normal_Width}" />
5
+        <Setter Property="Height" Value="{DynamicResource GroupBox_Normal_Height}" />
6
+        <Setter Property="HorizontalAlignment" Value="{DynamicResource TextBlock_Normal_HorizontalAlignment}" />
7
+        <Setter Property="VerticalAlignment" Value="{DynamicResource TextBlock_Normal_VerticalAlignment}" />
8
+    </Style>
9
+</ResourceDictionary>

+ 91
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/TextBox.xaml View File

@@ -0,0 +1,91 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3
+                    xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
4
+                    xmlns:dhcc="http://www.dhcc.com.cn">
5
+    <Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
6
+        <Setter Property="dhcc:FocusManager.FocusHandled" Value="{x:Static dhcc:TextBoxHelper.TextBoxFocusHandled}" />
7
+        <Setter Property="dhcc:FocusManager.IsInternalKeyboardControlling" Value="True" />
8
+        <Setter Property="dhcc:FocusManagerExt.IsFocusAdorner" Value="True" />
9
+        <Setter Property="dhcc:PasswordBoxHelper.IsAutoSelectedAll" Value="True" />
10
+        <Setter Property="dhcc:FocusManagerExt.AssertNotEmpty" Value="False" />
11
+        <Setter Property="dhcc:FocusManagerExt.ValidationField" Value="Text" />
12
+        <Setter Property="HorizontalAlignment" Value="{DynamicResource TextBox_Normal_HorizontalAlignment}" />
13
+        <Setter Property="VerticalAlignment" Value="{DynamicResource TextBox_Normal_VerticalAlignment}" />
14
+        <Setter Property="dhcc:FocusManagerExt.FieldEmptyPolicies">
15
+            <Setter.Value>
16
+                <dhcc:FieldPolicyCollection>
17
+                    <dhcc:ShowTipPolicy />                   
18
+                </dhcc:FieldPolicyCollection>
19
+            </Setter.Value>
20
+        </Setter>
21
+        <Setter Property="dhcc:FocusManagerExt.RegexValidateErrorPolicies">
22
+            <Setter.Value>
23
+                <dhcc:FieldPolicyCollection>
24
+                    <dhcc:ShowTipPolicy />                    
25
+                </dhcc:FieldPolicyCollection>
26
+            </Setter.Value>
27
+        </Setter>
28
+        <Setter Property="SnapsToDevicePixels" Value="True"/>
29
+        <Setter Property="OverridesDefaultStyle" Value="True"/>
30
+        <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
31
+        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
32
+        <Setter Property="AllowDrop" Value="true"/>
33
+        <Setter Property="Width" Value="120" />
34
+        <Setter Property="Height" Value="23" />
35
+        <Setter Property="Template">
36
+            <Setter.Value>
37
+                <ControlTemplate TargetType="{x:Type TextBoxBase}">
38
+                    <Grid>
39
+                        <Border 
40
+                          Name="Border"
41
+                          CornerRadius="{DynamicResource TextBox_Normal_CornerRadius}" 
42
+                          Padding="2"
43
+                          Background="{DynamicResource TextBox_Normal_Background}"
44
+                          BorderBrush="{DynamicResource TextBox_Normal_BorderBrush}"
45
+                          BorderThickness="{DynamicResource TextBox_Normal_BorderThickness}" />
46
+                        <Label Foreground="DimGray" 
47
+                               x:Name="TextPrompt" 
48
+                               Grid.Column="0"                                 
49
+                               Opacity="0.5"
50
+                               Content="{Binding Path=(dhcc:TextBoxHelper.WaterMarkText),RelativeSource={RelativeSource Mode=TemplatedParent}, Mode=OneWay}"                                
51
+                               Margin="3,0,0,0"
52
+                               Visibility="Collapsed"
53
+                               VerticalAlignment="Center"
54
+                               Focusable="False"/>
55
+                              
56
+                        <ScrollViewer x:Name="PART_ContentHost"
57
+                                      Margin="2,0,0,0"
58
+                                      HorizontalAlignment="Stretch"
59
+                                      VerticalAlignment="Stretch" />
60
+                    </Grid>
61
+                    <ControlTemplate.Triggers>
62
+                        <MultiTrigger>
63
+                            <MultiTrigger.Conditions>
64
+                                <Condition Property="IsFocused" Value="False"/>
65
+                                <Condition Property="TextBox.Text" Value=""/>
66
+                            </MultiTrigger.Conditions>
67
+                            <MultiTrigger.Setters>
68
+                                <Setter Property="Visibility" TargetName="TextPrompt" Value="Visible"/>
69
+                            </MultiTrigger.Setters>
70
+                        </MultiTrigger>
71
+                       
72
+                        <Trigger Property="IsMouseOver" Value="true">
73
+                            <Setter TargetName="Border" Property="Background"  Value="{DynamicResource TextBox_MouseOver_Background}"/>
74
+                            <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource TextBox_MouseOver_BorderBrush}" />
75
+                            <Setter TargetName="Border" Property="BorderThickness" Value="{DynamicResource TextBox_MouseOver_BorderThickness}"/>
76
+                        </Trigger>
77
+                        <Trigger Property="dhcc:FocusManagerExt.AssertNotEmpty" Value="True">
78
+                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource TextBox_AssertNotEmpty_Background}" />
79
+                        </Trigger>
80
+                        <Trigger Property="IsEnabled" Value="False">
81
+                            <Setter TargetName="Border" Property="Background" Value="{DynamicResource TextBox_Enable_Background}"/>
82
+                            <Setter TargetName="Border" Property="BorderBrush" Value="{DynamicResource TextBox_Enable_BorderBrush}"/>
83
+                            <Setter Property="Foreground" Value="{DynamicResource TextBox_Enable_Foreground}"/>
84
+                        </Trigger>
85
+                    </ControlTemplate.Triggers>                   
86
+                </ControlTemplate>
87
+            </Setter.Value>
88
+        </Setter>
89
+    </Style>
90
+
91
+</ResourceDictionary>

+ 27
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/TipAdorner.xaml View File

@@ -0,0 +1,27 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3
+                    xmlns:dhcc="http://www.dhcc.com.cn">
4
+
5
+    <Style TargetType="dhcc:TipAdorner">
6
+        <Setter Property="MessageTemplate">
7
+            <Setter.Value>
8
+                <DataTemplate>
9
+                    <Border MinHeight="23"
10
+                            MaxWidth="200"
11
+                            Background="{DynamicResource TipAdorner_Normal_Background}"
12
+                            CornerRadius="{DynamicResource TipAdorner_Normal_CornerRadius}">
13
+                        <TextBlock Margin="8,0,8,0"
14
+                                   VerticalAlignment="Center"
15
+                                   Foreground="{DynamicResource TipAdorner_Normal_Foreground}"
16
+                                   Text="{Binding}"
17
+                                   TextWrapping="Wrap" />
18
+                        <Border.Effect>
19
+                            <DropShadowEffect ShadowDepth="0" />
20
+                        </Border.Effect>
21
+                    </Border>
22
+                </DataTemplate>
23
+            </Setter.Value>
24
+        </Setter>
25
+    </Style>
26
+
27
+</ResourceDictionary>

+ 33
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Controls/TreeView.xaml View File

@@ -0,0 +1,33 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+    <SolidColorBrush x:Key="WindowBackgroundBrush" Color="#FFF" />
4
+
5
+
6
+    <Style TargetType="TreeView"  BasedOn="{StaticResource {x:Type TreeView}}">
7
+        <Setter Property="OverridesDefaultStyle" Value="True" />
8
+        <Setter Property="SnapsToDevicePixels" Value="True" />
9
+        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
10
+        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
11
+        <Setter Property="Template">
12
+            <Setter.Value>
13
+                <ControlTemplate TargetType="TreeView">
14
+                    <Border 
15
+          Name="Border" 
16
+          CornerRadius="1" 
17
+          Background="{DynamicResource TreeView_Normal_Background}"
18
+          BorderBrush="{DynamicResource TreeView_Normal_BorderBrush}"
19
+          BorderThickness="1" >
20
+                        <ScrollViewer 
21
+            Focusable="False"
22
+            CanContentScroll="False"
23
+            Padding="4">
24
+                            <ItemsPresenter/>
25
+                        </ScrollViewer>
26
+                    </Border>
27
+                </ControlTemplate>
28
+            </Setter.Value>
29
+        </Setter>
30
+    </Style>
31
+
32
+
33
+</ResourceDictionary>

BIN
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Images/MainICO.png View File


+ 5
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Page/LoginPage_DefaultControlTemplate.xaml View File

@@ -0,0 +1,5 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+    <ControlTemplate x:Key="LoginPage_DefaultControlTemplate">
4
+    </ControlTemplate>
5
+</ResourceDictionary>

+ 106
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/BrushDictionary.xaml View File

@@ -0,0 +1,106 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+
4
+    <!--全部-->
5
+    <!--边框-->
6
+    <SolidColorBrush x:Key="Border_Background" Color="#FF333333"></SolidColorBrush>
7
+    <Thickness x:Key="Border_Thickness">1</Thickness>
8
+    <SolidColorBrush x:Key="Border_BackgroundBrush_Focused">#FF59A5D0</SolidColorBrush>
9
+    <Thickness x:Key="Border_Thickness_Focused">1</Thickness>
10
+    <SolidColorBrush x:Key="Border_BackgroundBrush_MouseOver">#FF59A5D0</SolidColorBrush>
11
+    <Thickness x:Key="Border_Thickness_MouseOver">1</Thickness>
12
+
13
+    <SolidColorBrush x:Key="Border_Background_Enable" Color="#FFAAAAAA"></SolidColorBrush>
14
+    <SolidColorBrush x:Key="Foreground_Enable" Color="#FF888888"></SolidColorBrush>
15
+    <SolidColorBrush x:Key="Control_Foreground" Color="#FF000000"/>
16
+    <SolidColorBrush x:Key="Item_Selected_BackgroundBrush" Color="#FFDDDDDD" />
17
+    <!--文本-->
18
+    <SolidColorBrush x:Key="Text_Background" Color="#FFFFFFFF"></SolidColorBrush>
19
+    <SolidColorBrush x:Key="Text_Background_MouseOver" Color="#FFFFFFFF"></SolidColorBrush>
20
+    <SolidColorBrush x:Key="Text_Background_Focused" Color="#FFFFFFFF"></SolidColorBrush>
21
+    <SolidColorBrush x:Key="Text_Background_Enable" Color="#feee"></SolidColorBrush>
22
+    <!--<SolidColorBrush x:Key="Text_Border_Foreground_Enable" Color="#FF888888"></SolidColorBrush>-->
23
+    <!--Button-->
24
+    <LinearGradientBrush x:Key="Button_Background" StartPoint="0,0" EndPoint="0,1">
25
+        <GradientBrush.GradientStops>
26
+            <GradientStopCollection>
27
+                <GradientStop Color="#FFF" Offset="0.0"/>
28
+                <GradientStop Color="#CCC" Offset="1.0"/>
29
+            </GradientStopCollection>
30
+        </GradientBrush.GradientStops>
31
+    </LinearGradientBrush>
32
+
33
+    <LinearGradientBrush x:Key="Button_Background_MouseOver" StartPoint="0,0" EndPoint="0,1">
34
+        <GradientBrush.GradientStops>
35
+            <GradientStopCollection>
36
+                <GradientStop Color="#FFF" Offset="0.0"/>
37
+                <GradientStop Color="#AAA" Offset="1.0"/>
38
+            </GradientStopCollection>
39
+        </GradientBrush.GradientStops>
40
+    </LinearGradientBrush>
41
+
42
+    <LinearGradientBrush x:Key="Button_Background_Pressed" StartPoint="0,0" EndPoint="0,1">
43
+        <GradientBrush.GradientStops>
44
+            <GradientStopCollection>
45
+                <GradientStop Color="#BBB" Offset="0.0"/>
46
+                <GradientStop Color="#EEE" Offset="0.1"/>
47
+                <GradientStop Color="#EEE" Offset="0.9"/>
48
+                <GradientStop Color="#FFF" Offset="1.0"/>
49
+            </GradientStopCollection>
50
+        </GradientBrush.GradientStops>
51
+    </LinearGradientBrush>
52
+
53
+    <SolidColorBrush x:Key="Button_Background_Enable" Color="#FFEEEEEE"></SolidColorBrush>
54
+
55
+    <SolidColorBrush x:Key="Item_Background_MouseOver" Color="#FFDDDDDD"></SolidColorBrush>
56
+
57
+
58
+
59
+
60
+
61
+    <CornerRadius x:Key="Control_CornerRadius">2</CornerRadius>
62
+
63
+    <SolidColorBrush x:Key="ScrollBar_Background">#FFF0F0F0</SolidColorBrush>
64
+    
65
+    <LinearGradientBrush x:Key="ScrollBarThumbVer_Background" StartPoint="0,0.5" EndPoint="0.5,0.5">
66
+        <LinearGradientBrush.GradientStops>
67
+            <GradientStop Offset="0" Color="#FFFFFF" />
68
+            <GradientStop Offset="0.5" Color="#FFDBDBDB" />
69
+            <GradientStop Offset="0.5" Color="#FFC7C7C7" />
70
+            <GradientStop Offset="1" Color="#FFEBEBEB" />
71
+        </LinearGradientBrush.GradientStops>
72
+    </LinearGradientBrush>
73
+
74
+    <LinearGradientBrush x:Key="ScrollBarThumbHor_Background" StartPoint="0.501162,0.932101" EndPoint="0.501162,0.0698787">
75
+        <LinearGradientBrush.GradientStops>
76
+            <GradientStop Offset="0" Color="#FFFFFF" />
77
+            <GradientStop Offset="0.5" Color="#FFDBDBDB" />
78
+            <GradientStop Offset="0.5" Color="#FFC7C7C7" />
79
+            <GradientStop Offset="1" Color="#FFEBEBEB" />
80
+        </LinearGradientBrush.GradientStops>
81
+    </LinearGradientBrush>
82
+
83
+
84
+    <LinearGradientBrush x:Key="ScrollBarVer_Mouse_Background" StartPoint="0,0" EndPoint="0,1">
85
+        <GradientBrush.GradientStops>
86
+            <GradientStopCollection>
87
+                <GradientStop Offset="0.0" Color="#BBB" />
88
+                <GradientStop Offset="0.1" Color="#EEE" />
89
+                <GradientStop Offset="0.9" Color="#EEE" />
90
+                <GradientStop Offset="1.0" Color="#FFF" />
91
+            </GradientStopCollection>
92
+        </GradientBrush.GradientStops>
93
+    </LinearGradientBrush>
94
+
95
+    <LinearGradientBrush x:Key="ScrollBarHor_Mouse_Background" StartPoint="0,0" EndPoint="0,1">
96
+        <GradientBrush.GradientStops>
97
+            <GradientStopCollection>
98
+                <GradientStop Offset="0.0" Color="#BBB" />
99
+                <GradientStop Offset="0.1" Color="#EEE" />
100
+                <GradientStop Offset="0.9" Color="#EEE" />
101
+                <GradientStop Offset="1.0" Color="#FFF" />
102
+            </GradientStopCollection>
103
+        </GradientBrush.GradientStops>
104
+    </LinearGradientBrush>
105
+
106
+</ResourceDictionary>

+ 58
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/ButtonDictionary.xaml View File

@@ -0,0 +1,58 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+    <LinearGradientBrush x:Key="Button_Normal_Background" StartPoint="0,0" EndPoint="0,1">
4
+        <GradientBrush.GradientStops>
5
+            <GradientStopCollection>
6
+                <GradientStop Color="#FFF" Offset="0.0"/>
7
+                <GradientStop Color="#CCC" Offset="1.0"/>
8
+            </GradientStopCollection>
9
+        </GradientBrush.GradientStops>
10
+    </LinearGradientBrush>
11
+
12
+    <SolidColorBrush x:Key="Button_Normal_BorderBrush" Color="#FF333333"></SolidColorBrush>
13
+
14
+    <Thickness x:Key="Button_Normal_BorderThickness">1</Thickness>
15
+
16
+    <LinearGradientBrush x:Key="Button_MouseOver_Background" StartPoint="0,0" EndPoint="0,1">
17
+        <GradientBrush.GradientStops>
18
+            <GradientStopCollection>
19
+                <GradientStop Color="#FFF" Offset="0.0"/>
20
+                <GradientStop Color="#AAA" Offset="1.0"/>
21
+            </GradientStopCollection>
22
+        </GradientBrush.GradientStops>
23
+    </LinearGradientBrush>
24
+
25
+    <SolidColorBrush x:Key="Button_MouseOver_BorderBrush">#FF59A5D0</SolidColorBrush>
26
+
27
+    <Thickness x:Key="Button_MouseOver_BorderThickness">1</Thickness>
28
+
29
+    <LinearGradientBrush x:Key="Button_Pressed_Background" StartPoint="0,0" EndPoint="0,1">
30
+        <GradientBrush.GradientStops>
31
+            <GradientStopCollection>
32
+                <GradientStop Color="#BBB" Offset="0.0"/>
33
+                <GradientStop Color="#EEE" Offset="0.1"/>
34
+                <GradientStop Color="#EEE" Offset="0.9"/>
35
+                <GradientStop Color="#FFF" Offset="1.0"/>
36
+            </GradientStopCollection>
37
+        </GradientBrush.GradientStops>
38
+    </LinearGradientBrush>
39
+
40
+    <SolidColorBrush x:Key="Button_Pressed_BorderBrush">#FF59A5D0</SolidColorBrush>
41
+
42
+    <Thickness x:Key="Button_Pressed_BorderThickness">1</Thickness>
43
+
44
+    <SolidColorBrush x:Key="Button_Enable_Background" Color="#FFEEEEEE"></SolidColorBrush>
45
+
46
+    <SolidColorBrush x:Key="Button_Enable_BorderBrush" Color="#FFAAAAAA"></SolidColorBrush>
47
+
48
+    <Thickness x:Key="Button_Enable_BorderThickness">1</Thickness>
49
+
50
+    <SolidColorBrush x:Key="Button_Enable_Foreground" Color="#FF888888"></SolidColorBrush>
51
+
52
+    <SolidColorBrush x:Key="Button_Focused_BorderBrush">#FF59A5D0</SolidColorBrush>
53
+
54
+    <Thickness x:Key="Button_Focused_BorderThickness">1</Thickness>
55
+
56
+    <CornerRadius x:Key="Button_Normal_CornerRadius">2</CornerRadius>
57
+
58
+</ResourceDictionary>

+ 44
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/CheckBoxDictionary.xaml View File

@@ -0,0 +1,44 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+    <LinearGradientBrush x:Key="CheckBox_Normal_Background" StartPoint="0,0" EndPoint="0,1">
4
+        <GradientBrush.GradientStops>
5
+            <GradientStopCollection>
6
+                <GradientStop Color="#FFF" Offset="0.0"/>
7
+                <GradientStop Color="#CCC" Offset="1.0"/>
8
+            </GradientStopCollection>
9
+        </GradientBrush.GradientStops>
10
+    </LinearGradientBrush>
11
+
12
+    <SolidColorBrush x:Key="CheckBox_Normal_BorderBrush" Color="#FF333333"></SolidColorBrush>
13
+
14
+    <SolidColorBrush x:Key="CheckBox_Normal_Foreground" Color="#FF000000"/>
15
+
16
+    <SolidColorBrush x:Key="CheckBox_Focused_BorderBrush">#FF59A5D0</SolidColorBrush>
17
+
18
+    <LinearGradientBrush x:Key="CheckBox_MouseOver_Background" StartPoint="0,0" EndPoint="0,1">
19
+        <GradientBrush.GradientStops>
20
+            <GradientStopCollection>
21
+                <GradientStop Color="#FFF" Offset="0.0"/>
22
+                <GradientStop Color="#AAA" Offset="1.0"/>
23
+            </GradientStopCollection>
24
+        </GradientBrush.GradientStops>
25
+    </LinearGradientBrush>
26
+
27
+    <SolidColorBrush x:Key="CheckBox_Enable_Background" Color="#FFEEEEEE"></SolidColorBrush>
28
+
29
+    <SolidColorBrush x:Key="CheckBox_Enable_BorderBrush" Color="#FFAAAAAA"></SolidColorBrush>
30
+
31
+    <SolidColorBrush x:Key="CheckBox_Enable_Foreground" Color="#FF888888"></SolidColorBrush>
32
+
33
+    <LinearGradientBrush x:Key="CheckBox_Pressed_Background" StartPoint="0,0" EndPoint="0,1">
34
+        <GradientBrush.GradientStops>
35
+            <GradientStopCollection>
36
+                <GradientStop Color="#BBB" Offset="0.0"/>
37
+                <GradientStop Color="#EEE" Offset="0.1"/>
38
+                <GradientStop Color="#EEE" Offset="0.9"/>
39
+                <GradientStop Color="#FFF" Offset="1.0"/>
40
+            </GradientStopCollection>
41
+        </GradientBrush.GradientStops>
42
+    </LinearGradientBrush>
43
+
44
+</ResourceDictionary>

+ 72
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/ComboboxDictionary.xaml View File

@@ -0,0 +1,72 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+
4
+    <SolidColorBrush x:Key="ComBoxItem_Select_Background" Color="#FFDDDDDD"></SolidColorBrush>
5
+
6
+    <SolidColorBrush x:Key="ComboxItem_Enable_Foreground" Color="#FFFFFFFF"></SolidColorBrush>
7
+
8
+    <SolidColorBrush x:Key="ComboxDropdown_Normal_Background" Color="#FFFFFFFF"></SolidColorBrush>
9
+
10
+    <Thickness x:Key="ComboxDropdown_Normal_BorderThickness">1</Thickness>
11
+
12
+    <SolidColorBrush x:Key="ComboxDropdown_Normal_BorderBrush" Color="#FF333333"></SolidColorBrush>
13
+
14
+    <SolidColorBrush x:Key="ComboxDropdown_Enable_Foreground" Color="#FF888888"></SolidColorBrush>
15
+
16
+    <LinearGradientBrush x:Key="ComboxButton_Normal_Background" StartPoint="0,0" EndPoint="0,1">
17
+        <GradientBrush.GradientStops>
18
+            <GradientStopCollection>
19
+                <GradientStop Color="#FFF" Offset="0.0"/>
20
+                <GradientStop Color="#CCC" Offset="1.0"/>
21
+            </GradientStopCollection>
22
+        </GradientBrush.GradientStops>
23
+    </LinearGradientBrush>
24
+
25
+    <SolidColorBrush x:Key="ComboxButton_Normal_BorderBrush" Color="#FF333333"></SolidColorBrush>
26
+
27
+    <Thickness x:Key="ComboxButton_Normal_BorderThickness">1</Thickness>
28
+
29
+    <SolidColorBrush x:Key="ComboxText_Normal_Background" Color="#FFFFFFFF"></SolidColorBrush>
30
+
31
+    <SolidColorBrush x:Key="ComboxText_Normal_BorderBrush" Color="#FF333333"></SolidColorBrush>
32
+
33
+    <LinearGradientBrush x:Key="ComboxButton_MouseOver_Background" StartPoint="0,0" EndPoint="0,1">
34
+        <GradientBrush.GradientStops>
35
+            <GradientStopCollection>
36
+                <GradientStop Color="#FFF" Offset="0.0"/>
37
+                <GradientStop Color="#AAA" Offset="1.0"/>
38
+            </GradientStopCollection>
39
+        </GradientBrush.GradientStops>
40
+    </LinearGradientBrush>
41
+
42
+    <SolidColorBrush x:Key="ComboxText_MouseOver_BorderBrush">#FF59A5D0</SolidColorBrush>
43
+
44
+    <LinearGradientBrush x:Key="ComboxButton_Check_Background" StartPoint="0,0" EndPoint="0,1">
45
+        <GradientBrush.GradientStops>
46
+            <GradientStopCollection>
47
+                <GradientStop Color="#BBB" Offset="0.0"/>
48
+                <GradientStop Color="#EEE" Offset="0.1"/>
49
+                <GradientStop Color="#EEE" Offset="0.9"/>
50
+                <GradientStop Color="#FFF" Offset="1.0"/>
51
+            </GradientStopCollection>
52
+        </GradientBrush.GradientStops>
53
+    </LinearGradientBrush>
54
+
55
+    <SolidColorBrush x:Key="ComboxButton_Enable_Background" Color="#FFEEEEEE"></SolidColorBrush>
56
+
57
+    <SolidColorBrush x:Key="ComboxButton_Enable_BorderBrush" Color="#FFAAAAAA"></SolidColorBrush>
58
+
59
+    <SolidColorBrush x:Key="Combox_Enable_Foreground" Color="#FF888888"></SolidColorBrush>
60
+
61
+    <SolidColorBrush x:Key="ComboxTrigonum_Enable_Foreground" Color="#FF888888"></SolidColorBrush>
62
+
63
+    <SolidColorBrush x:Key="ComboxText_Enable_Background" Color="#FFAAAAAA"></SolidColorBrush>
64
+
65
+    <SolidColorBrush x:Key="ComboxButton_Focuse_Background">#FF59A5D0</SolidColorBrush>
66
+
67
+    <Thickness x:Key="ComboxButton_Focuse_BorderThickness">1</Thickness>
68
+    
69
+    <SolidColorBrush x:Key="ComboxButton_MouseOver_BorderBrush">#FF59A5D0</SolidColorBrush>
70
+
71
+
72
+</ResourceDictionary>

+ 8
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/DataGridDictionary.xaml View File

@@ -0,0 +1,8 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+
4
+    <SolidColorBrush x:Key="DataGrid_Normal_BorderBrush" Color="#FF75A1AE" />
5
+
6
+    <SolidColorBrush x:Key="DataGrid_Normal_Background" Color="#FFF8F8F8" />
7
+
8
+</ResourceDictionary>

+ 13
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/GroupBoxDictionary.xaml View File

@@ -0,0 +1,13 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+    
4
+    <SolidColorBrush x:Key="GroupBox_Normal_BorderBrush" Color="#FF333333"></SolidColorBrush>
5
+
6
+    <Thickness x:Key="GroupBox_Normal_BorderThickness">1</Thickness>
7
+    
8
+    <SolidColorBrush x:Key="GroupBox_Normal_Background" Color="#FFFFFFFF"></SolidColorBrush>
9
+
10
+    <SolidColorBrush x:Key="GroupBox_Normal_Header_Background" Color="#FFFFFFFF"></SolidColorBrush>
11
+
12
+    <SolidColorBrush x:Key="GroupBox_Normal_Foreground" Color="#FF000000"></SolidColorBrush>
13
+</ResourceDictionary>

+ 4
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/Image.xaml View File

@@ -0,0 +1,4 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+    <Image x:Key="Sys_Icon" Source="/Platform.BaseTheme;component/Images/MainICO.png"></Image>
4
+</ResourceDictionary>

+ 4
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/LableDictionary.xaml View File

@@ -0,0 +1,4 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+    <SolidColorBrush x:Key="Lable_Enable_Foreground" Color="#FF888888"></SolidColorBrush>
4
+</ResourceDictionary>

+ 17
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/ListBoxDictionary.xaml View File

@@ -0,0 +1,17 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+    
4
+    <SolidColorBrush x:Key="ListBox_Normal_Background" Color="#FFFFFFFF"></SolidColorBrush>
5
+
6
+    <SolidColorBrush x:Key="ListBox_Normal_BorderBrush" Color="#FF000000"></SolidColorBrush>
7
+
8
+    <Thickness x:Key="ListBox_Normal_BorderThickness">1</Thickness>
9
+
10
+    <SolidColorBrush x:Key="ListBox_Enable_Background" Color="#FFEEEEEE"></SolidColorBrush>
11
+
12
+    <SolidColorBrush x:Key="ListBox_Enable_BorderBrush" Color="#FFAAAAAA"></SolidColorBrush>
13
+
14
+    <SolidColorBrush x:Key="ListBoxItem_Select_BorderBrush" Color="#FFDDDDDD"></SolidColorBrush>
15
+
16
+    <SolidColorBrush x:Key="ListBoxItem_Enable_Foreground" Color="#FFEEEEEE"></SolidColorBrush>
17
+</ResourceDictionary>

+ 31
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/PasswordBoxDictionary.xaml View File

@@ -0,0 +1,31 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3
+                    xmlns:sys="clr-namespace:System;assembly=mscorlib">
4
+
5
+    <sys:Char x:Key="PasswordBox_Normal_PasswordChar">*</sys:Char>
6
+    
7
+    <SolidColorBrush x:Key="PasswordBox_Normal_Background" Color="#FFFFFFFF"></SolidColorBrush>
8
+    
9
+    <SolidColorBrush x:Key="PasswordBox_Normal_BorderBrush" Color="#FF333333"></SolidColorBrush>
10
+
11
+    <Thickness x:Key="PasswordBox_Normal_BorderThickness">1</Thickness>
12
+
13
+    <SolidColorBrush x:Key="PasswordBox_Enable_Background" Color="#feee"></SolidColorBrush>
14
+
15
+    <SolidColorBrush x:Key="PasswordBox_Enable_BorderBrush" Color="#FFAAAAAA"></SolidColorBrush>
16
+
17
+    <SolidColorBrush x:Key="PasswordBox_Enable_Foreground" Color="#FF888888"></SolidColorBrush>
18
+
19
+    <SolidColorBrush x:Key="PasswordBox_Focused_Background" Color="#FFFFFFFF"></SolidColorBrush>
20
+
21
+    <SolidColorBrush x:Key="PasswordBox_Focused_BrushBrush">#FF59A5D0</SolidColorBrush>
22
+
23
+    <Thickness x:Key="PasswordBox_Focused_Thickness">1</Thickness>
24
+
25
+    <SolidColorBrush x:Key="PasswordBox_MouseOver_Background" Color="#FFFFFFFF"></SolidColorBrush>
26
+
27
+    <SolidColorBrush x:Key="PasswordBox_MouseOver_BorderBrush">#FF59A5D0</SolidColorBrush>
28
+
29
+    <Thickness x:Key="PasswordBox_MouseOver_BorderThickness">1</Thickness>
30
+
31
+</ResourceDictionary>

+ 47
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/RadioButtonDictionary.xaml View File

@@ -0,0 +1,47 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+
4
+    <LinearGradientBrush x:Key="RadioButton_Normal_Background" StartPoint="0,0" EndPoint="0,1">
5
+        <GradientBrush.GradientStops>
6
+            <GradientStopCollection>
7
+                <GradientStop Color="#FFF" Offset="0.0"/>
8
+                <GradientStop Color="#CCC" Offset="1.0"/>
9
+            </GradientStopCollection>
10
+        </GradientBrush.GradientStops>
11
+    </LinearGradientBrush>
12
+
13
+    <SolidColorBrush x:Key="RadioButton_Normal_BorderBrush" Color="#FF333333"></SolidColorBrush>
14
+
15
+    <SolidColorBrush x:Key="RadioButton_Normal_Foreground" Color="#FF000000"/>
16
+
17
+    <LinearGradientBrush x:Key="RadioButton_MouseOver_Background" StartPoint="0,0" EndPoint="0,1">
18
+        <GradientBrush.GradientStops>
19
+            <GradientStopCollection>
20
+                <GradientStop Color="#FFF" Offset="0.0"/>
21
+                <GradientStop Color="#AAA" Offset="1.0"/>
22
+            </GradientStopCollection>
23
+        </GradientBrush.GradientStops>
24
+    </LinearGradientBrush>
25
+
26
+    <SolidColorBrush x:Key="RadioButton_MouseOver_BorderBrush">#FF59A5D0</SolidColorBrush>
27
+
28
+    <LinearGradientBrush x:Key="RadioButton_Pressed_Background" StartPoint="0,0" EndPoint="0,1">
29
+        <GradientBrush.GradientStops>
30
+            <GradientStopCollection>
31
+                <GradientStop Color="#BBB" Offset="0.0"/>
32
+                <GradientStop Color="#EEE" Offset="0.1"/>
33
+                <GradientStop Color="#EEE" Offset="0.9"/>
34
+                <GradientStop Color="#FFF" Offset="1.0"/>
35
+            </GradientStopCollection>
36
+        </GradientBrush.GradientStops>
37
+    </LinearGradientBrush>
38
+
39
+    <SolidColorBrush x:Key="RadioButton_Enable_Background" Color="#FFEEEEEE"></SolidColorBrush>
40
+
41
+    <SolidColorBrush x:Key="RadioButton_Enable_BorderBrush" Color="#FFAAAAAA"></SolidColorBrush>
42
+
43
+    <SolidColorBrush x:Key="RadioButton_Enable_Foreground" Color="#FF888888"></SolidColorBrush>
44
+
45
+    <SolidColorBrush x:Key="RadioButton_Focused_BorderBrush">#FF59A5D0</SolidColorBrush>
46
+
47
+</ResourceDictionary>

+ 151
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/ScrollBarDictionary.xaml View File

@@ -0,0 +1,151 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+
4
+    <LinearGradientBrush x:Key="ScrollBarVerticalButton_Normal_Background" StartPoint="0,0.5" EndPoint="0.5,0.5">
5
+        <LinearGradientBrush.GradientStops>
6
+            <GradientStop Offset="0" Color="#FFFFFF" />
7
+            <GradientStop Offset="0.5" Color="#FFDBDBDB" />
8
+            <GradientStop Offset="0.5" Color="#FFC7C7C7" />
9
+            <GradientStop Offset="1" Color="#FFEBEBEB" />
10
+        </LinearGradientBrush.GradientStops>
11
+    </LinearGradientBrush>
12
+
13
+    <SolidColorBrush x:Key="ScrollBarVerticalButton_Normal_BorderBrush" Color="#FF333333"></SolidColorBrush>
14
+
15
+    <Thickness x:Key="ScrollBarVerticalButton_Normal_BorderThickness">1</Thickness>
16
+
17
+    <SolidColorBrush x:Key="ScrollBarVerticalButton_Enable_Background" Color="#FFEEEEEE"></SolidColorBrush>
18
+
19
+    <SolidColorBrush x:Key="ScrollBarVerticalButton_Enable_BorderBrush" Color="#FFAAAAAA"></SolidColorBrush>
20
+
21
+    <SolidColorBrush x:Key="ScrollBarVerticalButton_Enable_Foreground" Color="#FF888888"></SolidColorBrush>
22
+
23
+    <LinearGradientBrush x:Key="ScrollBarVerticalButton_MouseOver_Background" StartPoint="0,0" EndPoint="0,1">
24
+        <GradientBrush.GradientStops>
25
+            <GradientStopCollection>
26
+                <GradientStop Offset="0.0" Color="#BBB" />
27
+                <GradientStop Offset="0.1" Color="#EEE" />
28
+                <GradientStop Offset="0.9" Color="#EEE" />
29
+                <GradientStop Offset="1.0" Color="#FFF" />
30
+            </GradientStopCollection>
31
+        </GradientBrush.GradientStops>
32
+    </LinearGradientBrush>
33
+
34
+    <SolidColorBrush x:Key="ScrollBarVerticalButton_MouseOver_BorderBrush">#FF59A5D0</SolidColorBrush>
35
+
36
+    <Thickness x:Key="ScrollBarVerticalButton_MouseOver_BorderThickness">1</Thickness>
37
+
38
+    <SolidColorBrush x:Key="ScrollBarVerticalButton_Normal_Foreground" Color="#FF000000"/>
39
+
40
+    <LinearGradientBrush x:Key="ScrollBarHorizontalButton_Normal_Background" StartPoint="0.501162,0.932101" EndPoint="0.501162,0.0698787">
41
+        <LinearGradientBrush.GradientStops>
42
+            <GradientStop Offset="0" Color="#FFFFFF" />
43
+            <GradientStop Offset="0.5" Color="#FFDBDBDB" />
44
+            <GradientStop Offset="0.5" Color="#FFC7C7C7" />
45
+            <GradientStop Offset="1" Color="#FFEBEBEB" />
46
+        </LinearGradientBrush.GradientStops>
47
+    </LinearGradientBrush>
48
+
49
+    <SolidColorBrush x:Key="ScrollBarHorizontalButton_Normal_BorderBrush" Color="#FF333333"></SolidColorBrush>
50
+
51
+    <Thickness x:Key="ScrollBarHorizontalButton_Normal_BorderThickness">1</Thickness>
52
+
53
+    <SolidColorBrush x:Key="ScrollBarHorizontalButton_Normal_Foreground" Color="#FF000000"/>
54
+
55
+    <SolidColorBrush x:Key="ScrollBarHorizontalButton_Enable_Background" Color="#FFEEEEEE"></SolidColorBrush>
56
+
57
+    <SolidColorBrush x:Key="ScrollBarHorizontalButton_Enable_BorderBrush" Color="#FFAAAAAA"></SolidColorBrush>
58
+
59
+    <SolidColorBrush x:Key="ScrollBarHorizontalButton_Enable_Foreground" Color="#FF888888"></SolidColorBrush>
60
+
61
+    <LinearGradientBrush x:Key="ScrollBarHorizontalButton_MouseOver_Background" StartPoint="0,0" EndPoint="0,1">
62
+        <GradientBrush.GradientStops>
63
+            <GradientStopCollection>
64
+                <GradientStop Offset="0.0" Color="#BBB" />
65
+                <GradientStop Offset="0.1" Color="#EEE" />
66
+                <GradientStop Offset="0.9" Color="#EEE" />
67
+                <GradientStop Offset="1.0" Color="#FFF" />
68
+            </GradientStopCollection>
69
+        </GradientBrush.GradientStops>
70
+    </LinearGradientBrush>
71
+
72
+    <SolidColorBrush x:Key="ScrollBarHorizontalButton_MouseOver_BorderBrush">#FF59A5D0</SolidColorBrush>
73
+
74
+    <Thickness x:Key="ScrollBarHorizontalButton_MouseOver_BorderThickness">1</Thickness>
75
+
76
+    <LinearGradientBrush x:Key="ScrollBarVerticalScrollButton_Normal_Background" StartPoint="0,0.5" EndPoint="0.5,0.5">
77
+        <LinearGradientBrush.GradientStops>
78
+            <GradientStop Offset="0" Color="#FFFFFF" />
79
+            <GradientStop Offset="0.5" Color="#FFDBDBDB" />
80
+            <GradientStop Offset="0.5" Color="#FFC7C7C7" />
81
+            <GradientStop Offset="1" Color="#FFEBEBEB" />
82
+        </LinearGradientBrush.GradientStops>
83
+    </LinearGradientBrush>
84
+
85
+    <SolidColorBrush x:Key="ScrollBarVerticalScrollButton_Normal_BorderBrush" Color="#FF333333"></SolidColorBrush>
86
+
87
+    <Thickness x:Key="ScrollBarVerticalScrollButton_Normal_BorderThickness">1</Thickness>
88
+
89
+    <SolidColorBrush x:Key="ScrollBarVerticalScrollButton_Normal_Foreground" Color="#FF000000"/>
90
+
91
+    <SolidColorBrush x:Key="ScrollBarVerticalScrollButton_Enable_Background" Color="#FFEEEEEE"></SolidColorBrush>
92
+
93
+    <SolidColorBrush x:Key="ScrollBarVerticalScrollButton_Enable_BorderBrush" Color="#FFAAAAAA"></SolidColorBrush>
94
+
95
+    <SolidColorBrush x:Key="ScrollBarVerticalScrollButton_Enable_Foreground" Color="#FF888888"></SolidColorBrush>
96
+
97
+    <LinearGradientBrush x:Key="ScrollBarVerticalScrollButton_MouseOver_Background" StartPoint="0,0" EndPoint="0,1">
98
+        <GradientBrush.GradientStops>
99
+            <GradientStopCollection>
100
+                <GradientStop Offset="0.0" Color="#BBB" />
101
+                <GradientStop Offset="0.1" Color="#EEE" />
102
+                <GradientStop Offset="0.9" Color="#EEE" />
103
+                <GradientStop Offset="1.0" Color="#FFF" />
104
+            </GradientStopCollection>
105
+        </GradientBrush.GradientStops>
106
+    </LinearGradientBrush>
107
+
108
+    <SolidColorBrush x:Key="ScrollBarVerticalScrollButton_MouseOver_BorderBrush">#FF59A5D0</SolidColorBrush>
109
+
110
+    <Thickness x:Key="ScrollBarVerticalScrollButton_MouseOver_BorderThickness">1</Thickness>
111
+
112
+    <LinearGradientBrush x:Key="ScrollBarHorizontalScrollButton_Normal_Background" StartPoint="0.501162,0.932101" EndPoint="0.501162,0.0698787">
113
+        <LinearGradientBrush.GradientStops>
114
+            <GradientStop Offset="0" Color="#FFFFFF" />
115
+            <GradientStop Offset="0.5" Color="#FFDBDBDB" />
116
+            <GradientStop Offset="0.5" Color="#FFC7C7C7" />
117
+            <GradientStop Offset="1" Color="#FFEBEBEB" />
118
+        </LinearGradientBrush.GradientStops>
119
+    </LinearGradientBrush>
120
+
121
+    <SolidColorBrush x:Key="ScrollBarHorizontalScrollButton_Normal_BorderBrush" Color="#FF333333"></SolidColorBrush>
122
+
123
+    <SolidColorBrush x:Key="ScrollBarHorizontalScrollButton_Normal_Foreground" Color="#FF000000"/>
124
+
125
+    <SolidColorBrush x:Key="ScrollBarHorizontalScrollButton_Enable_Background" Color="#FFEEEEEE"></SolidColorBrush>
126
+
127
+    <SolidColorBrush x:Key="ScrollBarHorizontalScrollButton_Enable_BorderBrush" Color="#FFAAAAAA"></SolidColorBrush>
128
+
129
+    <SolidColorBrush x:Key="ScrollBarHorizontalScrollButton_Enable_Foreground" Color="#FF888888"></SolidColorBrush>
130
+
131
+    <LinearGradientBrush x:Key="ScrollBarHorizontalScrollButton_MouseOver_Background" StartPoint="0,0" EndPoint="0,1">
132
+        <GradientBrush.GradientStops>
133
+            <GradientStopCollection>
134
+                <GradientStop Offset="0.0" Color="#BBB" />
135
+                <GradientStop Offset="0.1" Color="#EEE" />
136
+                <GradientStop Offset="0.9" Color="#EEE" />
137
+                <GradientStop Offset="1.0" Color="#FFF" />
138
+            </GradientStopCollection>
139
+        </GradientBrush.GradientStops>
140
+    </LinearGradientBrush>
141
+
142
+    <SolidColorBrush x:Key="ScrollBarHorizontalScrollButton_MouseOver_BorderBrush">#FF59A5D0</SolidColorBrush>
143
+
144
+    <Thickness x:Key="ScrollBarHorizontalScrollButton_MouseOver_BorderThickness">1</Thickness>
145
+
146
+    <SolidColorBrush x:Key="ScrollBarVertical_Normal_Background">#FFF0F0F0</SolidColorBrush>
147
+
148
+    <SolidColorBrush x:Key="ScrollBarHorizontal_Normal_Background">#FFF0F0F0</SolidColorBrush>
149
+
150
+
151
+</ResourceDictionary>

+ 32
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/TextBoxDictionary.xaml View File

@@ -0,0 +1,32 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+
4
+    <SolidColorBrush x:Key="TextBox_Normal_Background" Color="#FFFFFFFF"></SolidColorBrush>
5
+
6
+    <SolidColorBrush x:Key="TextBox_Normal_BorderBrush" Color="#FF333333"></SolidColorBrush>
7
+
8
+    <Thickness x:Key="TextBox_Normal_BorderThickness">1</Thickness>
9
+
10
+    <CornerRadius x:Key="TextBox_Normal_CornerRadius">2</CornerRadius>
11
+    
12
+    <SolidColorBrush x:Key="TextBox_Enable_Background" Color="#feee"></SolidColorBrush>
13
+
14
+    <SolidColorBrush x:Key="TextBox_Enable_BorderBrush" Color="#FFAAAAAA"></SolidColorBrush>
15
+
16
+    <SolidColorBrush x:Key="TextBox_Enable_Foreground" Color="#FF888888"></SolidColorBrush>
17
+
18
+    <SolidColorBrush x:Key="TextBox_Focused_Background" Color="#FFFFFFFF"></SolidColorBrush>
19
+
20
+    <SolidColorBrush x:Key="TextBox_Focused_BorderBrush">#FF59A5D0</SolidColorBrush>
21
+
22
+    <Thickness x:Key="TextBox_Focused_BorderThickness">1</Thickness>
23
+
24
+    <SolidColorBrush x:Key="TextBox_MouseOver_Background" Color="#FFFFFFFF"></SolidColorBrush>
25
+
26
+    <SolidColorBrush x:Key="TextBox_MouseOver_BorderBrush">#FF59A5D0</SolidColorBrush>
27
+
28
+    <Thickness x:Key="TextBox_MouseOver_BorderThickness">1</Thickness>
29
+
30
+    <SolidColorBrush x:Key="TextBox_AssertNotEmpty_Background">#FFFFFF99</SolidColorBrush>
31
+
32
+</ResourceDictionary>

+ 8
- 0
ant-design-pro-vue3/src/views/front/platfrom/basetheme/Resources/TreeViewDictionary.xaml View File

@@ -0,0 +1,8 @@
1
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
+
4
+    <SolidColorBrush x:Key="TreeView_Normal_Background" Color="#FFFFFFFF"></SolidColorBrush>
5
+
6
+    <SolidColorBrush x:Key="TreeView_Normal_BorderBrush" Color="#FF333333"></SolidColorBrush>
7
+
8
+</ResourceDictionary>

Loading…
Cancel
Save