WinUICommunity Project Template, help you quickly create a new WinUI 3 App with WinUICommunity and MVVM Packages. We prepare your project with the following features: NavigationView, Custom TitleBar, HomeLandingPage, Unit Test and Settings Page (with Theme settings).
MIT License
37
stars
0
forks
source link
System.InvalidOperationException:“Operation is not valid due to the current state of the object.” #7
System.InvalidOperationException:“Operation is not valid due to the current state of the object.”
CurrentWindow.Activate();
ContextMenuItem menu = new ContextMenuItem
{
Title = "Open UF.Client Here",
AcceptDirectory = true,
Exe = "UF.Client.exe",
Param = "{path}"
};
await new ContextMenuService().SaveAsync(menu);
System.InvalidOperationException:“Operation is not valid due to the current state of the object.” CurrentWindow.Activate(); ContextMenuItem menu = new ContextMenuItem { Title = "Open UF.Client Here", AcceptDirectory = true, Exe = "UF.Client.exe", Param = "{path}" }; await new ContextMenuService().SaveAsync(menu);