Use a TextBox
with these settings instead to make it read only and to look like a TextBlock
control.
<TextBox Background="Transparent"
BorderThickness="0"
Text="{Binding Text, Mode=OneWay}"
IsReadOnly="True"
TextWrapping="Wrap" />
More Related Contents:
- How to bind a TextBlock to a resource containing formatted text?
- How can I specify letter spacing or kerning, in a WPF TextBox?
- Why isn’t TextBox.Text in WPF animatable?
- How do I get a TextBox to only accept numeric input in WPF?
- Binding to static property
- Why does the binding update without implementing INotifyPropertyChanged?
- How to get a group of toggle buttons to act like radio buttons in WPF?
- How to create custom window chrome in wpf?
- OneWayToSource binding from readonly property in XAML
- How can I apply a custom sort rule to a WPF DataGrid?
- What approaches are available to dummy design-time data in WPF?
- What does the WPF star do (Width=”100*”)
- WPF CommandParameter is NULL first time CanExecute is called
- Calling a parameterized constructor from XAML
- How to make overlay control above all other controls?
- Data binding the TextBlock.Inlines
- DataTrigger where value is NOT null?
- Trouble referencing a Resource Dictionary that contains a Merged Dictionary
- Set the caret/cursor position to the end of the string value WPF textbox
- WPF: XAML property declarations not being set via Setters?
- WPF TreeView: How to style selected items with rounded corners like in Explorer
- How can I reduce RadioButton binding code?
- TextBox TextTrimming
- Difference between {Binding PropertyName} and {Binding Path=PropertyName}
- Combine expander and grid (resizable expander)
- How to change MahApps.Metro dialog content template width?
- WPF ComboBox without drop-down button
- WPF MenuItem.Command binding to ElementName results to System.Windows.Data Error: 4 : Cannot find source for binding with reference
- WPF modeless dialog from MS Excel add-in
- Can you use a Binding ValidationRule within 1 line in xaml?