File tree Expand file tree Collapse file tree 4 files changed +139
-69
lines changed
MahMaterialDragablzMashUp
MaterialDesignThemes.MahApps/Themes Expand file tree Collapse file tree 4 files changed +139
-69
lines changed Original file line number Diff line number Diff line change 66
66
<mdix : DataGridComboBoxColumn Header =" Combo" SelectedItemBinding =" {Binding EnumValue}" ItemsSource =" {Binding Source={StaticResource EnumValues}}" />
67
67
<controls : DataGridNumericUpDownColumn Binding =" {Binding IntValue}"
68
68
Header =" Numeric"
69
+ Width =" 300"
70
+ TextAlignment =" Center"
69
71
Minimum =" 0"
70
72
StringFormat =" {}{0} km" />
71
73
</DataGrid .Columns>
Original file line number Diff line number Diff line change 2
2
<Project Sdk =" Microsoft.NET.Sdk.WindowsDesktop" >
3
3
<PropertyGroup >
4
4
<OutputType >WinExe</OutputType >
5
- <TargetFrameworks >net45 </TargetFrameworks >
5
+ <TargetFrameworks >net472;netcoreapp3.0 </TargetFrameworks >
6
6
<UseWPF >true</UseWPF >
7
- <ProjectTypeGuids >{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids >
8
7
<SolutionDir Condition =" $(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'" >..\</SolutionDir >
9
8
<AutoGenerateBindingRedirects >true</AutoGenerateBindingRedirects >
10
9
<AssemblyTitle >MahMaterialDragablzMashUp</AssemblyTitle >
11
10
<Product >MahMaterialDragablzMashUp</Product >
12
11
<Copyright >Copyright © 2019</Copyright >
13
12
<ExtrasEnableWpfProjectSetup >true</ExtrasEnableWpfProjectSetup >
14
- <Configurations >Debug;Release</Configurations >
15
13
<ErrorReport >prompt</ErrorReport >
16
14
<Prefer32Bit >true</Prefer32Bit >
17
15
</PropertyGroup >
Original file line number Diff line number Diff line change 12
12
13
13
<Style TargetType =" {x:Type controls:NumericUpDown}" BasedOn =" {StaticResource MaterialDesignNumericUpDown}" />
14
14
<Style TargetType =" {x:Type controls:RangeSlider}" BasedOn =" {StaticResource MaterialDesignRangeSlider}" />
15
+
16
+ <Style x : Key =" MahApps.Styles.NumericUpDown.DataGridColumn"
17
+ BasedOn =" {StaticResource MaterialDesignNumericUpDown}"
18
+ TargetType =" {x:Type controls:NumericUpDown}" >
19
+ <Setter Property =" Background" Value =" Transparent" />
20
+ <Setter Property =" BorderThickness" Value =" 0" />
21
+ <Setter Property =" HideUpDownButtons" Value =" True" />
22
+ <Setter Property =" MinHeight" Value =" 0" />
23
+ <Setter Property =" VerticalAlignment" Value =" Top" />
24
+ <Setter Property =" VerticalContentAlignment" Value =" Center" />
25
+ </Style >
26
+
27
+ <Style x : Key =" MahApps.Styles.NumericUpDown.DataGridColumnEditing"
28
+ BasedOn =" {StaticResource MahApps.Styles.NumericUpDown.DataGridColumn}"
29
+ TargetType =" {x:Type controls:NumericUpDown}" >
30
+ <Setter Property =" Background" Value =" {DynamicResource MahApps.Brushes.White}" />
31
+ <Setter Property =" HideUpDownButtons" Value =" False" />
32
+ </Style >
15
33
</ResourceDictionary >
You can’t perform that action at this time.
0 commit comments