provençal le breton
provençal le breton

Reputation: 1438

Get current textBox to make a copy/paste

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

Answers (1)

Roise
Roise

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

Related Questions