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
488
Preventing Scrollbars from being displayed
posted

How do I prevent scrollbars from being displayed in the grid control.

  • 69686
    posted

    Hello,
    For horizontal scrollbars, you can set the AutoFit property to true. If you want the scrollbars to be missing as a whole, you can use the following style for the RecordListControl :

    <Style TargetType="{x:Type igDP:RecordListControl}">

                        <Setter Property="Template">

                            <Setter.Value>

                                <ControlTemplate TargetType="{x:Type igDP:RecordListControl}">

                                    <ScrollViewer RenderTransform="{TemplateBinding FixedNearElementTransform}" CanContentScroll="true" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">

                                        <ItemsPresenter RenderTransform="{TemplateBinding ScrollableElementTransform}"/>

                                    </ScrollViewer>

                                </ControlTemplate>

                            </Setter.Value>

                        </Setter>

                    </Style>