-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
Controls.xaml
116 lines (108 loc) · 8.82 KB
/
Controls.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Controls="clr-namespace:MahApps.Metro.Controls"
xmlns:Converters="clr-namespace:MahApps.Metro.Converters">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Sizes.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.Shadows.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.Page.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/ValidationErrorTemplate.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.Scrollbars.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.ListView.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.Buttons.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.Calendar.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.CheckBox.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.ComboBox.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.ContextMenu.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.DatePicker.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.DataGrid.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.Expander.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.GroupBox.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.ListBox.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.PasswordBox.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.ProgressBar.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.RadioButton.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.Slider.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.TabControl.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.TextBlock.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.TextBox.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.Label.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.Tooltip.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.ToolBar.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.TreeView.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.StatusBar.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.ToggleSwitch.xaml" />
<!-- Theme styles with keys -->
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Themes/WindowButtonCommands.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Themes/Dialogs/BaseMetroDialog.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style x:Key="FloatingMessageContainerStyle" TargetType="{x:Type ContentControl}">
<Setter Property="Focusable" Value="False" />
<Setter Property="IsHitTestVisible" Value="False" />
<Setter Property="IsTabStop" Value="False" />
<Setter Property="Margin" Value="5 0" />
<Setter Property="Visibility" Value="Collapsed" />
</Style>
<Style x:Key="PathIconContentControlStyle" TargetType="{x:Type ContentControl}">
<Setter Property="FlowDirection" Value="LeftToRight" />
<Setter Property="Height" Value="16" />
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="IsTabStop" Value="False" />
<Setter Property="Padding" Value="0" />
<Setter Property="SnapsToDevicePixels" Value="False" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ContentControl}">
<Viewbox Margin="{TemplateBinding Padding}" UseLayoutRounding="True">
<Path Data="{Binding Content, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay, Converter={Converters:NullToUnsetValueConverter}}"
Fill="{TemplateBinding Foreground}"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
Stretch="Uniform"
UseLayoutRounding="False" />
</Viewbox>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="UseLayoutRounding" Value="False" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Width" Value="16" />
</Style>
<!-- note: default style for textblock is now in MetroWindow !!! -->
<Style BasedOn="{StaticResource MetroValidationPopup}" TargetType="{x:Type Controls:CustomValidationPopup}" />
<Style BasedOn="{StaticResource MetroToolTip}" TargetType="ToolTip" />
<Style BasedOn="{StaticResource MahApps.Metro.Styles.MetroButton}" TargetType="Button" />
<Style BasedOn="{StaticResource MahApps.Metro.Styles.MetroButton}" TargetType="RepeatButton" />
<Style BasedOn="{StaticResource MahApps.Metro.Styles.MetroToggleButton}" TargetType="ToggleButton" />
<Style BasedOn="{StaticResource MetroTextBox}" TargetType="TextBox" />
<Style BasedOn="{StaticResource MetroRichTextBox}" TargetType="RichTextBox" />
<Style BasedOn="{StaticResource MetroSlider}" TargetType="Slider" />
<Style BasedOn="{StaticResource MetroLabel}" TargetType="Label" />
<Style BasedOn="{StaticResource MetroTabItem}" TargetType="TabItem" />
<Style BasedOn="{StaticResource MetroTabControl}" TargetType="TabControl" />
<Style BasedOn="{StaticResource MetroScrollBar}" TargetType="ScrollBar" />
<Style BasedOn="{StaticResource MetroRadioButton}" TargetType="RadioButton" />
<Style BasedOn="{StaticResource MetroProgressBar}" TargetType="ProgressBar" />
<Style BasedOn="{StaticResource MetroPasswordBox}" TargetType="PasswordBox" />
<Style BasedOn="{StaticResource MetroCheckBox}" TargetType="CheckBox" />
<Style BasedOn="{StaticResource MetroComboBox}" TargetType="ComboBox" />
<Style BasedOn="{StaticResource MetroComboBoxItem}" TargetType="ComboBoxItem" />
<Style BasedOn="{StaticResource MetroMenuItem}" TargetType="MenuItem" />
<Style BasedOn="{StaticResource MetroMenu}" TargetType="Menu" />
<Style BasedOn="{StaticResource MetroContextMenu}" TargetType="ContextMenu" />
<Style BasedOn="{StaticResource MetroExpander}" TargetType="Expander" />
<Style BasedOn="{StaticResource MetroGroupBox}" TargetType="GroupBox" />
<Style BasedOn="{StaticResource MetroListBox}" TargetType="ListBox" />
<Style BasedOn="{StaticResource MetroListBoxItem}" TargetType="ListBoxItem" />
<Style BasedOn="{StaticResource MetroGridViewColumnHeader}" TargetType="GridViewColumnHeader" />
<Style BasedOn="{StaticResource MetroListView}" TargetType="ListView" />
<Style BasedOn="{StaticResource MetroListViewItem}" TargetType="ListViewItem" />
<Style BasedOn="{StaticResource MetroTreeView}" TargetType="TreeView" />
<Style BasedOn="{StaticResource MetroTreeViewItem}" TargetType="TreeViewItem" />
<Style BasedOn="{StaticResource MetroDatePicker}" TargetType="DatePicker" />
<Style BasedOn="{StaticResource MetroDatePickerTextBox}" TargetType="DatePickerTextBox" />
<Style BasedOn="{StaticResource MahApps.Metro.Styles.MetroCalendar}" TargetType="Calendar" />
<Style BasedOn="{StaticResource MetroDataGrid}" TargetType="DataGrid" />
<Style BasedOn="{StaticResource MetroStatusBar}" TargetType="StatusBar" />
<Style BasedOn="{StaticResource MetroStatusBarItem}" TargetType="StatusBarItem" />
<Style BasedOn="{StaticResource MetroScrollViewer}" TargetType="ScrollViewer" />
</ResourceDictionary>