WinUICommunity / WinUICommunity-Templates

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

Open scx1125 opened 1 month ago

scx1125 commented 1 month ago

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);

ghost1372 commented 1 month ago

Can you give me a example repro project?