Reputation: 1438
I'm making a copy/paste function, but I miss the way to get active textBox.
I have six textBox, and I made this for the moment :
var pressePapier = (ScriptObject)HtmlPage.Window.GetProperty("clipboardData");
if (pressePapier != null)
{
string textSelected = activeTb.SelectedText;
pressePapier.Invoke("setData", "text", textSelected);
}
How can I get the active textBox, to complete my copy/paste?
Upvotes: 0
Views: 133
Reputation: 364
Im not familiar with silverlight but think this question should give you the needed answers: Detecting a control's focus in Silverlight
Upvotes: 1