locked
I want something like method Control.Focus, but I use MVVM and can`t call this method

    Question

  • Hello, I have button and textBox.
    When I click button I want select text in textBox.

    I have to do it without code-behind

    Thank you vary much )

    best regards

    Em Anton


    Friday, April 10, 2015 1:01 PM

Answers

  • Why the artificial limitation? Is this a puzzle?

    You'll need to use code for this, but you can encapsulate it in a behavior so it is triggered and controlled from the xaml

    • Marked as answer by Anton Em Friday, April 10, 2015 9:26 PM
    Friday, April 10, 2015 2:14 PM
    Owner

All replies

  • Why the artificial limitation? Is this a puzzle?

    You'll need to use code for this, but you can encapsulate it in a behavior so it is triggered and controlled from the xaml

    • Marked as answer by Anton Em Friday, April 10, 2015 9:26 PM
    Friday, April 10, 2015 2:14 PM
    Owner
  • Thank you very much it works)

    I want to realize "find next" button.

    Best regards!)

    Em A.A.




    • Edited by Anton Em Saturday, April 11, 2015 9:26 AM
    Friday, April 10, 2015 11:45 PM