Copy/Paste Commands in XAML
Posted: 06 Apr 2023, 11:23
Code: Select all
<TextBox.ContextMenu>
<ContextMenu>
<MenuItem
Header="{Binding Source=#Translatable:MenuCut, Converter={StaticResource LocalizationConverter}}"
Command="Cut">
</MenuItem>
<MenuItem
Header="{Binding Source=#Translatable:MenuCopy, Converter={StaticResource LocalizationConverter}}"
Command="Copy">
</MenuItem>
<MenuItem
Header="{Binding Source=#Translatable:MenuPaste, Converter={StaticResource LocalizationConverter}}"
Command="Paste">
</MenuItem>
</ContextMenu>
</TextBox.ContextMenu>
Code: Select all
NOESIS E ../data/nassets/UI/Screens/ProfileNameDialog.xaml(230): Unable to convert 'Cut' to a valid value for property MenuItem.Command.
NOESIS E ../data/nassets/UI/Screens/ProfileNameDialog.xaml(234): Unable to convert 'Copy' to a valid value for property MenuItem.Command.
NOESIS E ../data/nassets/UI/Screens/ProfileNameDialog.xaml(238): Unable to convert 'Paste' to a valid value for property MenuItem.Command.