void canvas_CanExecuteChanged(object sender, BSkyBoolEventArgs e) { Ok.IsEnabled = e.Value; //Added by Aaron 01/02/2014 //This is to ensure that unless all canexecutes are set to yes on all the controls on the dialog //the OK and Syntax buttons will not be enabled //Paste.IsEnabled = e.Value; }