1

我想知道是否有办法在 RichEditControl 中隐藏标尺,如下所示:

<dxre:RichEditControl x:Name="richEditControl"
                      Grid.Row="1"
                      Margin="10"
                      Height="150"
                      VerticalScrollBarVisibility="Visible"
                      HorizontalScrollBarVisibility="Collapsed"
                      BarManager="{Binding ElementName=barManager1,
                                   Mode=OneTime}" />
4

1 回答 1

1

目前,我创建了一个没有标尺的控件:

using DevExpress.Xpf.RichEdit;
(...)
    public class RulerlessRichEditControl : RichEditControl
(...)
            Options.HorizontalRuler.Visibility = DevExpress.XtraRichEdit.RichEditRulerVisibility.Hidden;
            Options.VerticalRuler.Visibility = DevExpress.XtraRichEdit.RichEditRulerVisibility.Hidden;
于 2013-01-23T01:54:35.730 回答