How do I...Set the SaveAs Command to a Button
1 post
• Page 1 of 1
How do I...Set the SaveAs Command to a Button
In APL:
In XAML:
where the call back functions are:
⎕USING←'' 'System.Windows,WPF/PresentationFramework.DLL'
⎕USING,←⊂'System.Windows.Controls'
btn←⎕NEW Button
btn #.WPF.SetCommand'ApplicationCommands.SaveAs'
In XAML:
- Code: Select all
xmlns:apl="clr-namespace:MJHSoftware;assembly=MJHSoftware.APLExtension"
<Button Command="{apl:Command SaveAs}" />
where the call back functions are:
∇ CanExecuteMyCmd(sender args)
[1] :Signature CanExecuteMyCmd Object,CanExecuteRoutedEventArgs
[2] args.CanExecute←condition
∇
∇ ExecutedMyCommand(sender args)
[1] :Signature ExecutedMyCommand Object,ExecutedRoutedEventArgs
[2]
[3] … code
[4]
∇
-
Fiona|Dyalog - Posts: 74
- Joined: Mon Apr 22, 2013 12:59 pm
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group