I'm sure this question has been asked a million times before but I haven't found the magic Google words for it.
I have build a control based on FrameworkElement. This control has the ability to cut and paste information if the control has part of it selected. (Its a waveform and the selection is a marked of section of that waveform) What I would like to
know is how to have this control enable/disable the Cut/Paste menu items automagically like the Textbox does.
Thus if I have a text box in focus and the Copy MenuItem bound to ApplicationCommands.Copy, the MenuItem is enabled/Disabled if text is selected or not. This is done without me binding directly. So how can I get this sort of
behavior in my Framework control?
View Complete Post