Esempio n. 1
0
 public void Bind(ExtendedListBox listbox)
 {
     Bound = true;
     this.listbox = listbox;
     listbox.ManipulationStateChanged += listbox_ManipulationStateChanged;
     listbox.MouseMove += listbox_MouseMove;
 }
 public void Bind(ExtendedListBox listbox)
 {
     lb = listbox;
     resource = listbox.Loader.Resource;
     lb.ManipulationStateChanged += lb_ManipulationStateChanged;
     Bound = true;
 }
Esempio n. 3
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;
        }
        public void Unbind()
        {
            var tmpLb = lb;
            scrollViewer = null;
            lb = null;
            Deployment.Current.Dispatcher.InvokeIfRequired(() => tmpLb.ManipulationCompleted -= lb_ManipulationCompleted);

            Bound = false;
        }
Esempio n. 6
0
        void ShowResumePositionPrompt(ExtendedListBox list)
        {
            currentShowingList = list;

            if (recoverDialogShown)
                return;

            SbShowDialog.BeginTime = TimeSpan.FromSeconds(2);
            SbShowDialog.Begin();

            recoverDialogShown = true;
        }
 public void Unbind()
 {
     Bound = false;
     lb.ManipulationStateChanged -= lb_ManipulationStateChanged;
     lb = null;
     resource = null;
 }