日期:2014-05-17 浏览次数:20753 次
<Style TargetType="{x:Type control:ZRichTextBox}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type control:ZRichTextBox}">
<DockPanel LastChildFill="True">
<Border DockPanel.Dock="Top" SnapsToDevicePixels="True"
BorderBrush="{TemplateBinding ToolbarBorderBrush}"
BorderThickness ="{TemplateBinding ToolbarBorderThickness}">
<StackPanel Height="24" Orientation="Horizontal"
Background="{TemplateBinding ToolbarBackground}">
.....这里为我的工具栏按钮
</StackPanel>
</Border>
<ScrollViewer x:Name="PART_ContentHost" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
</ScrollViewer>
</DockPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<ScrollViewer x:Name="PART_ContentHost" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"