Example #1
0
        void SetScrollViewerProperties(string scrollViewerName, CompositeDisposable disposable)
        {
            if (SharedHelpers.IsRS5OrHigher())
            {
                if (GetTemplateChild(scrollViewerName) is ScrollViewer scrollViewer)
                {
                    if (SharedHelpers.IsScrollContentPresenterSizesContentToTemplatedParentAvailable())
                    {
                        //	revoker = scrollViewer.Loaded(auto_revoke, { this, &OnScrollViewerLoaded });
                    }

                    if (SharedHelpers.IsScrollViewerReduceViewportForCoreInputViewOcclusionsAvailable())
                    {
                        scrollViewer.ReduceViewportForCoreInputViewOcclusions = true;
                    }
                }
            }
        }