File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -540,9 +540,9 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseItemMenuItems(
540
540
new ContextMenuFlyoutItemViewModel ( )
541
541
{
542
542
Text = "BaseLayoutContextFlyoutNew/Label" . GetLocalizedResource ( ) ,
543
- OpacityIcon = new OpacityIconModel ( )
543
+ OpacityIcon = new UserControls . OpacityIcon ( )
544
544
{
545
- OpacityIconStyle = ( Style ) Application . Current . Resources [ "ColorIconNew" ] ,
545
+ Style = ( Style ) Application . Current . Resources [ "ColorIconNew" ] ,
546
546
} ,
547
547
KeyboardAccelerator = new KeyboardAccelerator
548
548
{
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ public class ContextMenuFlyoutItemViewModel
34
34
35
35
public BitmapImage BitmapIcon { get ; set ; }
36
36
37
+ public OpacityIcon OpacityIcon { get ; set ; }
38
+
37
39
/// <summary>
38
40
/// Only show the item when the shift key is held
39
41
/// </summary>
@@ -80,7 +82,6 @@ public class ContextMenuFlyoutItemViewModel
80
82
public bool CollapseLabel { get ; set ; }
81
83
82
84
public ColoredIconModel ColoredIcon { get ; set ; }
83
- public OpacityIconModel OpacityIcon { get ; set ; }
84
85
85
86
public bool ShowLoadingIndicator { get ; set ; }
86
87
@@ -143,14 +144,4 @@ public struct ColoredIconModel
143
144
144
145
public bool IsValid => ! string . IsNullOrEmpty ( BaseLayerGlyph ) ;
145
146
}
146
-
147
- public struct OpacityIconModel
148
- {
149
- public Style OpacityIconStyle { get ; set ; }
150
-
151
- public OpacityIcon ToOpacityIconIcon ( ) => new ( )
152
- {
153
- Style = OpacityIconStyle ,
154
- } ;
155
- }
156
147
}
You can’t perform that action at this time.
0 commit comments