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
15
RecordListControl or Template with control over Scrolling functionality
posted

          <Style TargetType="{x:Type igDP:RecordListControl}">
            <Setter Property="Template">
              <Setter.Value>
                <ControlTemplate TargetType="{x:Type igDP:RecordListControl}">
                  <ScrollViewer CanContentScroll="True" Focusable="false" HorizontalScrollBarVisibility="Visible"
                      VerticalScrollBarVisibility="Visible" ScrollChanged="ScrollViewer_ScrollChanged">
                    <ItemsPresenter RenderTransform="{TemplateBinding ScrollableElementTransform}" />
                  </ScrollViewer>
                </ControlTemplate>
              </Setter.Value>
            </Setter>
          </Style>

I need the ScrollViewer_ScrollChanged so to align other Scrolls with it.

Why it doesn't work when CanContentScroll="False" is set for smoothe scrolling (it cuts off certaing amount of Records at the end)?

Why there is a ViewPort Height change when CanContentScroll = "True"? - this looks like the issue

Another option is to Scroll RecordListControl based on external scrolls, but it looks harder to implement.