Copy/Paste Commands in XAML
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.-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: Copy/Paste Commands in XAML
The Cut/Copy/Paste commands are part of the ApplicationCommands class. It seems that WPF supports omiting the class for those commands, we should support that, could you please report it in our bugtracker?
In the meantime you can provide the class name to make it work in Noesis too:
In the meantime you can provide the class name to make it work in Noesis too:
Code: Select all
<ContextMenu>
<MenuItem Command="ApplicationCommands.Cut"/>
<MenuItem Command="ApplicationCommands.Copy"/>
<MenuItem Command="ApplicationCommands.Paste"/>
</ContextMenu>Re: Copy/Paste Commands in XAML
With ApplicationCommands. this work in noesis thanks.
I dont know this bug on not. If you know this a bug 100% then you can post in bugtracker.
I dont know this bug on not. If you know this a bug 100% then you can post in bugtracker.
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: Copy/Paste Commands in XAML
We implemented support for specifying only the name for ApplicationCommands and ComponentCommands: #2574
Who is online
Users browsing this forum: No registered users and 5 guests