Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
1.3 KiB

<ResourceDictionary xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
xmlns:avaloniaEdit="https://github.com/avaloniaui/avaloniaedit"
xmlns:controls="clr-namespace:StabilityMatrix.Avalonia.Controls">
<!-- Context menu for editors -->
<ui:FAMenuFlyout x:Key="EditorContextFlyout">
<ui:MenuFlyoutItem
Text="Paste"
IconSource="Paste"
HotKey="Ctrl+V"
Command="{x:Static controls:EditorCommands.PasteCommand}"
CommandParameter="{Binding $parent[avaloniaEdit:TextEditor]}"/>
<ui:MenuFlyoutItem
Text="Copy"
IconSource="Copy"
HotKey="Ctrl+C"
Command="{x:Static controls:EditorCommands.CopyCommand}"
CommandParameter="{Binding $parent[avaloniaEdit:TextEditor]}"/>
<ui:MenuFlyoutItem
Text="Cut"
IconSource="Cut"
HotKey="Ctrl+X"
Command="{x:Static controls:EditorCommands.CutCommand}"
CommandParameter="{Binding $parent[avaloniaEdit:TextEditor]}"/>
</ui:FAMenuFlyout>
</ResourceDictionary>