问题
currently i have a textblock placed in a scroll viewer control. How do i make the textblock read only?
回答1:
Textblocks are already readonly. They are intended to display a small amount of flow text. Perhaps you thought you were dealing with a TextBox instead?
回答2:
BinaryTox1n answered your question, but if you need the text to be selectable see the previous StackOverflow question.
回答3:
Bind the Textblock to a property with only a getter and it will be a readonly textblock.
来源:https://stackoverflow.com/questions/5073244/making-textblock-readonly