From b79cf60d94de02fd5cce97aafd5f327f7c5ce01d Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Wed, 16 Jul 2025 09:33:41 -0500 Subject: [PATCH] MAIN: fix this --- .../SeparatorContextItemViewModel.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/cmdpal/Microsoft.CmdPal.Core.ViewModels/SeparatorContextItemViewModel.cs b/src/modules/cmdpal/Microsoft.CmdPal.Core.ViewModels/SeparatorContextItemViewModel.cs index c6858f490d..ebdc163c61 100644 --- a/src/modules/cmdpal/Microsoft.CmdPal.Core.ViewModels/SeparatorContextItemViewModel.cs +++ b/src/modules/cmdpal/Microsoft.CmdPal.Core.ViewModels/SeparatorContextItemViewModel.cs @@ -2,11 +2,12 @@ // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.CmdPal.Core.ViewModels; +using CommunityToolkit.Mvvm.ComponentModel; using Microsoft.CommandPalette.Extensions; namespace Microsoft.CmdPal.Core.ViewModels; -public partial class SeparatorContextItemViewModel() : IContextItemViewModel, ISeparatorContextItem +// DANGER: Make sure that this is derived from a WinRT class. If not, it'll fail with AOT at runtime, in any bindings. +public partial class SeparatorContextItemViewModel() : ObservableObject, IContextItemViewModel, ISeparatorContextItem { }