This project is read-only.

HighlightCommand

Aug 4, 2010 at 7:06 AM
HighlightCommand : SelectionCommand has a property called Selection of type TextSelection.
Which property of Selection causes CanExecute to Change?
I assume in HighlightCommand's implementation there is such a code :
Selection.PropertyChanged += SelectionPropertyChanged;
SelectionPropertyChanged(,)
{
     if (e.PropertyName="...")
    {
        .
        .
       OnCanExecuteChanged();
    }
}
What would "..." be?
Aug 4, 2010 at 10:27 AM

The current implementation invokes the OnCanExecuteChanged on any property change.