ui/wpf/UIcore/TextArea.cs

changeset 104
3efe0210e27e
parent 101
1c943d43fa81
child 135
b9dc9cdfa23a
equal deleted inserted replaced
103:6a6718269c22 104:3efe0210e27e
16 AcceptsReturn = true; 16 AcceptsReturn = true;
17 IsUndoEnabled = false; // we need our own undo stack 17 IsUndoEnabled = false; // we need our own undo stack
18 VerticalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Auto; 18 VerticalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Auto;
19 HorizontalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Auto; 19 HorizontalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Auto;
20 fill = true; 20 fill = true;
21 }
22 else
23 {
24 HorizontalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Auto;
25 MinWidth = 15;
21 } 26 }
22 27
23 if (text != null) 28 if (text != null)
24 { 29 {
25 Text = text; 30 Text = text;

mercurial