Example #1
0
        public static ScrollViewer GetScrollViewer(this ListViewBase listViewBase)
        {
            //if (listViewBase is ChatsListView bubble)
            //{
            //    return bubble.ScrollingHost;
            //}

            return(listViewBase.Descendants <ScrollViewer>().FirstOrDefault() as ScrollViewer);
        }
Example #2
0
        public static ScrollViewer GetScrollViewer(this ListViewBase listViewBase)
        {
            if (listViewBase is BubbleListView bubble)
            {
                return(bubble.ScrollingHost);
            }

            return(listViewBase.Descendants <ScrollViewer>().FirstOrDefault() as ScrollViewer);
        }