@@ -147,7 +147,7 @@ private static MenuFlyoutItemBase GetItem(ContextMenuFlyoutItemViewModel i)
147
147
} ;
148
148
if ( ! string . IsNullOrEmpty ( i . Glyph ) )
149
149
{
150
- flyoutItem . Icon = new FontIcon { Glyph = i . Glyph } ;
150
+ flyoutItem . Icon = new FontIcon { Glyph = i . Glyph } ;
151
151
}
152
152
}
153
153
else
@@ -248,7 +248,7 @@ private static ICommandBarElement GetCommandBarButton(ContextMenuFlyoutItemViewM
248
248
CommandParameter = item . CommandParameter ,
249
249
IsChecked = item . IsChecked ,
250
250
Content = content ,
251
- LabelPosition = item . CollapseLabel ? CommandBarLabelPosition . Collapsed : CommandBarLabelPosition . Default ,
251
+ LabelPosition = item . IsPrimary || item . CollapseLabel ? CommandBarLabelPosition . Collapsed : CommandBarLabelPosition . Default ,
252
252
IsEnabled = item . IsEnabled ,
253
253
Visibility = item . IsHidden ? Visibility . Collapsed : Visibility . Visible ,
254
254
} ;
@@ -277,7 +277,7 @@ private static ICommandBarElement GetCommandBarButton(ContextMenuFlyoutItemViewM
277
277
Command = item . Command ,
278
278
CommandParameter = item . CommandParameter ,
279
279
Flyout = ctxFlyout ,
280
- LabelPosition = item . CollapseLabel ? CommandBarLabelPosition . Collapsed : CommandBarLabelPosition . Default ,
280
+ LabelPosition = item . IsPrimary || item . CollapseLabel ? CommandBarLabelPosition . Collapsed : CommandBarLabelPosition . Default ,
281
281
Content = content ,
282
282
IsEnabled = item . IsEnabled ,
283
283
Visibility = item . IsHidden ? Visibility . Collapsed : Visibility . Visible ,
0 commit comments