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; |