Esempio n. 1
0
        public void Bind(ExtendedListBox list)
        {
            listbox = list;
            listbox.LayoutUpdated += OnLayoutUpdate;
            scrollViewer = listbox.Descendants().OfType<ScrollViewer>().FirstOrDefault();
            scrollOffsetMargin = 0.5 * scrollViewer.ViewportHeight;

            Bound = true;
        }
        public void Bind(ExtendedListBox listbox)
        {
            lb = listbox;

            Deployment.Current.Dispatcher.InvokeIfRequired(() => {
                scrollViewer = listbox.Descendants().OfType<ScrollViewer>().FirstOrDefault();
                lb.ManipulationCompleted += lb_ManipulationCompleted;
            });

            Bound = true;
        }