希望这有帮助
<Window.Resources>
<Style TargetType="RichTextBox">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBoxBase}">
<Grid>
<Border Name="Border" Padding="1" BorderThickness="1" Background="Transparent" BorderBrush="Gray">
<ScrollViewer Margin="0" x:Name="PART_ContentHost" >
<ScrollViewer.RenderTransform>
<RotateTransform Angle="45"></RotateTransform>
</ScrollViewer.RenderTransform>
</ScrollViewer>
</Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Border" Property="BorderBrush" Value="Black"></Setter>
</Trigger>
<Trigger Property="IsKeyboardFocusWithin" Value="True">
<Setter TargetName="Border" Property="BorderBrush" Value="Black"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid>
<RichTextBox Height="300" Width="300">
<RichTextBox.Document>
<FlowDocument>
<Paragraph>
<Run>
</Run>
</Paragraph>
</FlowDocument>
</RichTextBox.Document>
</RichTextBox>
</Grid>
更新
<Window.Resources>
<Style TargetType="RichTextBox">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBoxBase}">
<Grid>
<Border Name="Border" Padding="1" BorderThickness="1" Background="Transparent" BorderBrush="Gray">
<ScrollViewer x:Name="PART_ContentHost" Margin="0" ScrollViewer.VerticalScrollBarVisibility="Auto">
<ScrollViewer.LayoutTransform>
<SkewTransform AngleY="20"/>
</ScrollViewer.LayoutTransform>
</ScrollViewer>
</Border>
<TextBlock TextWrapping="Wrap">
<ContentPresenter></ContentPresenter>
</TextBlock>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Border" Property="BorderBrush" Value="Black"></Setter>
</Trigger>
<Trigger Property="IsKeyboardFocusWithin" Value="True">
<Setter TargetName="Border" Property="BorderBrush" Value="Black"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
您也可以使用旋转变换..也可以使用旋转变换