File tree Expand file tree Collapse file tree 5 files changed +16
-11
lines changed Expand file tree Collapse file tree 5 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,8 @@ public string Label
62
62
public string Description
63
63
=> "OpenItemWithApplicationPickerDescription" . GetLocalizedResource ( ) ;
64
64
65
- // TODO add back icon when https://github.com/microsoft/microsoft-ui-xaml/issues/9409 is resolved
66
- //public RichGlyph Glyph
67
- // => new(opacityStyle: "ColorIconOpenWith");
65
+ public RichGlyph Glyph
66
+ => new ( opacityStyle : "ColorIconOpenWith" ) ;
68
67
69
68
public bool IsExecutable =>
70
69
context . HasSelection &&
Original file line number Diff line number Diff line change @@ -378,8 +378,8 @@ public static List<ContextMenuFlyoutItemViewModel> GetBaseItemMenuItems(
378
378
} . Build ( ) ,
379
379
new ContextMenuFlyoutItemViewModel ( )
380
380
{
381
- Text = "OpenWith" . GetLocalizedResource ( ) ,
382
- // TODO add back icon when https://github.com/microsoft/microsoft-ui-xaml/issues/9409 is resolved
381
+ // TODO add back text and icon when https://github.com/microsoft/microsoft-ui-xaml/issues/9409 is resolved
382
+ //Text = "OpenWith".GetLocalizedResource(),
383
383
//OpacityIcon = new OpacityIconModel()
384
384
//{
385
385
// OpacityIconStyle = "ColorIconOpenWith"
Original file line number Diff line number Diff line change @@ -336,11 +336,10 @@ x.Tag is Win32ContextMenuItem menuItem &&
336
336
{
337
337
await openWithItem . LoadSubMenuAction ( ) ;
338
338
339
- // TODO add back icon when https://github.com/microsoft/microsoft-ui-xaml/issues/9409 is resolved
340
- //openWithItem.OpacityIcon = new OpacityIconModel()
341
- //{
342
- // OpacityIconStyle = "ColorIconOpenWith",
343
- //};
339
+ openWithItem . OpacityIcon = new OpacityIconModel ( )
340
+ {
341
+ OpacityIconStyle = "ColorIconOpenWith" ,
342
+ } ;
344
343
var ( _, openWithItems ) = ContextFlyoutModelToElementHelper . GetAppBarItemsFromModel ( new List < ContextMenuFlyoutItemViewModel > ( ) { openWithItem } ) ;
345
344
var placeholder = itemContextMenuFlyout . SecondaryCommands . Where ( x => Equals ( ( x as AppBarButton ) ? . Tag , "OpenWithPlaceholder" ) ) . FirstOrDefault ( ) as AppBarButton ;
346
345
if ( placeholder is not null )
Original file line number Diff line number Diff line change 88
88
<PackageReference Include =" SevenZipSharp" Version =" 1.0.2" />
89
89
<PackageReference Include =" SQLitePCLRaw.bundle_green" Version =" 2.1.8" />
90
90
<PackageReference Include =" Microsoft.WindowsAppSDK" Version =" 1.5.240311000" />
91
- <PackageReference Include =" Microsoft.Graphics.Win2D" Version =" 1.1.1 " />
91
+ <PackageReference Include =" Microsoft.Graphics.Win2D" Version =" 1.2.0 " />
92
92
<PackageReference Include =" Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers" Version =" 0.4.421302" PrivateAssets =" all" />
93
93
<PackageReference Include =" CommunityToolkit.WinUI.Notifications" Version =" 7.1.2" />
94
94
<PackageReference Include =" CommunityToolkit.WinUI.UI.Behaviors" Version =" 7.1.2" />
Original file line number Diff line number Diff line change @@ -864,6 +864,13 @@ private async Task AddShellMenuItemsAsync(List<ContextMenuFlyoutItemViewModel> s
864
864
openWithOverflow . Flyout = flyout ;
865
865
openWith . Visibility = Visibility . Collapsed ;
866
866
openWithOverflow . Visibility = Visibility . Visible ;
867
+
868
+ // TODO delete this when https://github.com/microsoft/microsoft-ui-xaml/issues/9409 is resolved
869
+ openWithOverflow . Content = new OpacityIconModel ( )
870
+ {
871
+ OpacityIconStyle = "ColorIconOpenWith"
872
+ } . ToOpacityIcon ( ) ;
873
+ openWithOverflow . Label = "OpenWith" . GetLocalizedResource ( ) ;
867
874
}
868
875
}
869
876
You can’t perform that action at this time.
0 commit comments