Copy Option in textbox
is it possible to enable copy command on a textbox which is having IsEnabled property set to false开发者_如何学JAVA in wpf?
Set the 'IsReadOnly' property to true, copy command would be enabled and textbox uneditable.
add a context menu to the form which will be displayed only if right-clicked on the disabled textbox. the context menu will have only one option, copy. in its event handler, copy the textbox content to the clipboard.
精彩评论