OpenContextMenuMessage.cs
1 // Copyright (c) Microsoft Corporation 2 // The Microsoft Corporation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 using Microsoft.CmdPal.Core.ViewModels.Messages; 6 using Microsoft.UI.Xaml; 7 using Microsoft.UI.Xaml.Controls.Primitives; 8 using Windows.Foundation; 9 10 namespace Microsoft.CmdPal.UI.Messages; 11 12 /// <summary> 13 /// Used to announce the context menu should open 14 /// </summary> 15 public record OpenContextMenuMessage(FrameworkElement? Element, FlyoutPlacementMode? FlyoutPlacementMode, Point? Point, ContextMenuFilterLocation ContextMenuFilterLocation) 16 { 17 } 18 19 public enum ContextMenuFilterLocation 20 { 21 Top, 22 Bottom, 23 }