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 3838 <Setter Property =" Width" Value =" 96" />
3939 </Style >
4040 </StackPanel .Resources>
41-
41+
4242 <smtx : XamlDisplay UniqueKey =" comboboxes_1" Margin =" 0" >
4343
4444 <ComboBox materialDesign:HintAssist.Hint=" OS" >
4747 <ComboBoxItem Content =" Linux" />
4848 <ComboBoxItem Content =" Windows" />
4949 </ComboBox >
50- </smtx : XamlDisplay >
50+ </smtx : XamlDisplay >
5151 <smtx : XamlDisplay UniqueKey =" comboboxes_2" >
5252 <ComboBox
5353 materialDesign:HintAssist.Hint=" Search"
7878 materialDesign:TextFieldAssist.HasClearButton=" True"
7979 materialDesign:TextFieldAssist.SuffixText=" sw"
8080 materialDesign:TextFieldAssist.UnderlineBrush=" {DynamicResource SecondaryHueMidBrush}"
81- materialDesign:ColorZoneAssist.Mode=" Inverted "
81+ materialDesign:ColorZoneAssist.Mode=" SecondaryLight "
8282 materialDesign:HintAssist.Hint=" OS"
8383 materialDesign:HintAssist.HelperText=" Select one OS"
8484 MinWidth =" 128" >
Original file line number Diff line number Diff line change 199199 Grid.Column=" 3"
200200 Grid.Row=" 3"
201201 Style =" {StaticResource MaterialDesignFilledComboBox}" />
202- <TextBlock
202+ <ComboBox
203203 Grid.Column=" 3"
204204 Grid.Row=" 4"
205- Style =" {StaticResource NotAvailable }" />
205+ Style =" {StaticResource MaterialDesignOutlinedComboBox }" />
206206
207207 <DatePicker
208208 Grid.Column=" 4"
Original file line number Diff line number Diff line change 1- using System . Windows ;
1+ using System ;
2+ using System . Windows ;
23
34namespace MaterialDesignThemes . Wpf
45{
@@ -7,16 +8,19 @@ public static class ComboBoxAssist
78 /// <summary>
89 /// By default ComboBox uses the wrapper popup. Popup can be switched to classic Windows desktop view by means of this attached property.
910 /// </summary>
11+ [ Obsolete ( "ClassicMode is now obsolete and has no affect." ) ]
1012 public static readonly DependencyProperty ClassicModeProperty = DependencyProperty . RegisterAttached (
1113 "ClassicMode" ,
1214 typeof ( bool ) ,
1315 typeof ( ComboBoxAssist ) ,
1416 new FrameworkPropertyMetadata ( false ,
1517 FrameworkPropertyMetadataOptions . AffectsRender | FrameworkPropertyMetadataOptions . Inherits ) ) ;
1618
19+ [ Obsolete ( "ClassicMode is now obsolete and has no affect." ) ]
1720 public static bool GetClassicMode ( DependencyObject element )
1821 => ( bool ) element . GetValue ( ClassicModeProperty ) ;
1922
23+ [ Obsolete ( "ClassicMode is now obsolete and has no affect." ) ]
2024 public static void SetClassicMode ( DependencyObject element , bool value )
2125 => element . SetValue ( ClassicModeProperty , value ) ;
2226
You can’t perform that action at this time.
0 commit comments