开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜