Silverlight is awesome, most of my app users give positive reviews about silverlight. However, some users cannot live without copy / paste. They are very often used to copy / paste the functionality provided by an HTML page.
How can I implement such a context menu as well as copy / paste functions?
PS: The Windows-only solution is fine too.
TextBox IsReadOnly = true, / TextBlock. , / TextBox . , TextBlock's.
TextBox
TextBlock
, , TextBox, .
DOM , , - . Silverlight 4 API , -.
, TextBox TextBlock. :
, CTRL+C, CTRL+X CTRL+V - Silverlight 4:
string content = Clipboard.GetText(); Clipboard.SetText("hello world");
, Silverlight 4 -, IE. Popup ChildWindow Vectorlight:
Popup
ChildWindow
Codeplex , :
http://sl4popupmenu.codeplex.com/
Source: https://habr.com/ru/post/1735169/More articles:Вопрос о использовании памяти кучи и стека - c#Associating CustomXml with Headerpart - c #spring steering view - spring-mvcДвоичные данные под 20 КБ: BLOB или файловая система? - designCreate some TCP connections in C #, then wait - c #counting a number starting at zero in one data cycle - assemblyJQuery and .load () events - javascriptusing jQuery to reload an entire page - jqueryPrevent drupal loading from another javascript module - javascriptCakePHP & jQuery, location.reload sometimes doesn't work - javascriptAll Articles