|
10 | 10 | <Setter Property="Template"> |
11 | 11 | <Setter.Value> |
12 | 12 | <ControlTemplate TargetType="{x:Type AvalonEdit:TextEditor}"> |
13 | | - <ScrollViewer |
14 | | - Focusable="False" |
15 | | - Name="PART_ScrollViewer" |
16 | | - CanContentScroll="True" |
17 | | - VerticalScrollBarVisibility="{TemplateBinding VerticalScrollBarVisibility}" |
18 | | - HorizontalScrollBarVisibility="{TemplateBinding HorizontalScrollBarVisibility}" |
19 | | - Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TextArea}" |
20 | | - VerticalContentAlignment="Top" |
21 | | - HorizontalContentAlignment="Left" |
| 13 | + <Border |
22 | 14 | Background="{TemplateBinding Background}" |
23 | | - Padding="{TemplateBinding Padding}" |
24 | 15 | BorderBrush="{TemplateBinding BorderBrush}" |
25 | | - BorderThickness="{TemplateBinding BorderThickness}" |
26 | | - /> |
| 16 | + BorderThickness="{TemplateBinding BorderThickness}"> |
| 17 | + <ScrollViewer |
| 18 | + Focusable="False" |
| 19 | + Name="PART_ScrollViewer" |
| 20 | + CanContentScroll="True" |
| 21 | + VerticalScrollBarVisibility="{TemplateBinding VerticalScrollBarVisibility}" |
| 22 | + HorizontalScrollBarVisibility="{TemplateBinding HorizontalScrollBarVisibility}" |
| 23 | + Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TextArea}" |
| 24 | + VerticalContentAlignment="Top" |
| 25 | + HorizontalContentAlignment="Left" |
| 26 | + Padding="{TemplateBinding Padding}" |
| 27 | + /> |
| 28 | + </Border> |
27 | 29 | <ControlTemplate.Triggers> |
28 | 30 | <Trigger Property="WordWrap" |
29 | 31 | Value="True"> |
|
0 commit comments