我想知道是否有办法在RichEditControl中隐藏标尺,如下所示:
<dxre:RichEditControl x:Name="richEditControl"
Grid.Row="1"
Margin="10"
Height="150"
VerticalScrollBarVisibility="Visible"
HorizontalScrollBarVisibility="Collapsed"
BarManager="{Binding ElementName=barManager1,
Mode=OneTime}" />
答案 0 :(得分:1)
目前,我创建了一个没有标尺的控件:
using DevExpress.Xpf.RichEdit;
(...)
public class RulerlessRichEditControl : RichEditControl
(...)
Options.HorizontalRuler.Visibility = DevExpress.XtraRichEdit.RichEditRulerVisibility.Hidden;
Options.VerticalRuler.Visibility = DevExpress.XtraRichEdit.RichEditRulerVisibility.Hidden;