Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1285
XamTextEditor Multiline as editor AllowEdit=False no scrollbars
posted

Here is the style I used to setup field editor:

 <Style x:Key="TextboxWrapping" TargetType="{x:Type igEditors:XamTextEditor}">
            <Setter Property="TextWrapping" Value="Wrap" />
            <Setter Property="Height" Value="75" />
            <Setter Property="VerticalScrollBarVisibility" Value="Auto" />
            <Style.Resources>
                <Style TargetType="{x:Type TextBox}">
                    <Setter Property="AcceptsReturn" Value="True"/>
                </Style>
            </Style.Resources>
        </Style>

I do not want the user to be able to edit the record but some of the text does overflow available space so scrollbars are needed.  But when I set allowedit to false scrollbars do not showup only when allowedit=true. 

Is there a work around I can do?

Thanks

  • 69686
    posted

    Hello,

    If you do not set height it will be working as you expect. The scrollbars will appear only when the editor is in edit mode.