0

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?

Vaishali
  • 431
  • 1
  • 4
  • 17
provençal le breton
  • 1,428
  • 4
  • 26
  • 43

1 Answers1

1

Im not familiar with silverlight but think this question should give you the needed answers: Detecting a control's focus in Silverlight

Community
  • 1
  • 1
Roise
  • 364
  • 5
  • 22