forum

Home / DeveloperSection / Forums / TextBox readonly “on/off” between “double click and lost focus events” in wpf

TextBox readonly “on/off” between “double click and lost focus events” in wpf

Jayden Bell445824-Sep-2013

I have a control like below xaml with Read only enabled.

          <TextBox  Text="{Binding Name,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"  Background="Transparent" IsReadOnly="True" BorderThickness="0" TextWrapping="Wrap" >  

Now when i double click this text box , i should be able to enter texts. that is my readonly should become false

If i move to another item in the window other than this text box , then i my text box should become readonly again.

I am trying in WPF Trigget. but not getting the right hint . Can anyone help me here ?


Updated on 24-Sep-2013

Can you answer this question?


Answer

1 Answers

Liked By