http://community.sharpdevelop.net/forums/p/11977/42764.aspx#42764

  1:    <Style TargetType="{x:Type AvalonEdit:TextEditor}">
  2:         <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}" />
  3:         <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" />
  4:         <Setter Property="FlowDirection" Value="LeftToRight"/>
  5:         <!-- AvalonEdit does not support RTL, so ensure we use LTR by default -->
  6:         <Setter Property="Template">
  7:             <Setter.Value>
  8:                 <ControlTemplate TargetType="{x:Type AvalonEdit:TextEditor}">
  9:                     <ContentPresenter Focusable="False"
 10:                         Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TextArea}"
 11:                         >
 12:                     </ContentPresenter>
 13:                 </ControlTemplate>
 14:             </Setter.Value>
 15:         </Setter>
 16:     </Style>

相关文章:

  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
猜你喜欢
  • 2021-09-14
  • 2022-12-23
  • 2022-01-18
  • 2021-06-18
  • 2022-12-23
  • 2021-10-28
  • 2021-09-24
相关资源
相似解决方案