.net 3.5 - WPF TextBox with IsReadOnly property set to true can still be edited -


i'm using textbox , reasons needs read only. won't argue reasons here. know can use textblock or label display non-editable content, in case, unfortunately, there textbox.

<textbox isreadonly="true" text="{binding totalamount, mode=oneway, stringformat={}{0:c2}}" textalignment="right" /> 

is know if there known issue it? i'm using wpf 3.5

why don't use textblock?

<textblock text="{binding totalamount, mode=oneway, stringformat={}{0:c2}}" textalignment="right"/> 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -