File tree Expand file tree Collapse file tree 6 files changed +269
-318
lines changed Expand file tree Collapse file tree 6 files changed +269
-318
lines changed Original file line number Diff line number Diff line change 38
38
<Setter Property =" Width" Value =" 96" />
39
39
</Style >
40
40
</StackPanel .Resources>
41
-
41
+
42
42
<smtx : XamlDisplay UniqueKey =" comboboxes_1" Margin =" 0" >
43
43
44
44
<ComboBox materialDesign:HintAssist.Hint=" OS" >
47
47
<ComboBoxItem Content =" Linux" />
48
48
<ComboBoxItem Content =" Windows" />
49
49
</ComboBox >
50
- </smtx : XamlDisplay >
50
+ </smtx : XamlDisplay >
51
51
<smtx : XamlDisplay UniqueKey =" comboboxes_2" >
52
52
<ComboBox
53
53
materialDesign:HintAssist.Hint=" Search"
78
78
materialDesign:TextFieldAssist.HasClearButton=" True"
79
79
materialDesign:TextFieldAssist.SuffixText=" sw"
80
80
materialDesign:TextFieldAssist.UnderlineBrush=" {DynamicResource SecondaryHueMidBrush}"
81
- materialDesign:ColorZoneAssist.Mode=" Inverted "
81
+ materialDesign:ColorZoneAssist.Mode=" SecondaryLight "
82
82
materialDesign:HintAssist.Hint=" OS"
83
83
materialDesign:HintAssist.HelperText=" Select one OS"
84
84
MinWidth =" 128" >
Original file line number Diff line number Diff line change 199
199
Grid.Column=" 3"
200
200
Grid.Row=" 3"
201
201
Style =" {StaticResource MaterialDesignFilledComboBox}" />
202
- <TextBlock
202
+ <ComboBox
203
203
Grid.Column=" 3"
204
204
Grid.Row=" 4"
205
- Style =" {StaticResource NotAvailable }" />
205
+ Style =" {StaticResource MaterialDesignOutlinedComboBox }" />
206
206
207
207
<DatePicker
208
208
Grid.Column=" 4"
Original file line number Diff line number Diff line change 1
- using System . Windows ;
1
+ using System ;
2
+ using System . Windows ;
2
3
3
4
namespace MaterialDesignThemes . Wpf
4
5
{
@@ -7,16 +8,19 @@ public static class ComboBoxAssist
7
8
/// <summary>
8
9
/// By default ComboBox uses the wrapper popup. Popup can be switched to classic Windows desktop view by means of this attached property.
9
10
/// </summary>
11
+ [ Obsolete ( "ClassicMode is now obsolete and has no affect." ) ]
10
12
public static readonly DependencyProperty ClassicModeProperty = DependencyProperty . RegisterAttached (
11
13
"ClassicMode" ,
12
14
typeof ( bool ) ,
13
15
typeof ( ComboBoxAssist ) ,
14
16
new FrameworkPropertyMetadata ( false ,
15
17
FrameworkPropertyMetadataOptions . AffectsRender | FrameworkPropertyMetadataOptions . Inherits ) ) ;
16
18
19
+ [ Obsolete ( "ClassicMode is now obsolete and has no affect." ) ]
17
20
public static bool GetClassicMode ( DependencyObject element )
18
21
=> ( bool ) element . GetValue ( ClassicModeProperty ) ;
19
22
23
+ [ Obsolete ( "ClassicMode is now obsolete and has no affect." ) ]
20
24
public static void SetClassicMode ( DependencyObject element , bool value )
21
25
=> element . SetValue ( ClassicModeProperty , value ) ;
22
26
You can’t perform that action at this time.
0 commit comments