I've a question about an C# application for MacOS.
I have the following code (in the MainClass):
NSMenuItem copyMenuItem = new NSMenuItem(title: "Copy", charCode: "c", handler: delegate
{
//Has to be code
});
And in the page.xaml I have an editor tag:
<Editor x:Name="editField"
Text="Some Text"
Margin="0"
Grid.Row="1"
Grid.Column="1"/>
So, my question is:
How can I, whilst they use the same solution, copy the text (to a clipboard) which will be in the editor, using the first part of code? (NSMenuItem).