Beispiel #1
0
 public void Bind(ExtendedListBox listbox)
 {
     Bound        = true;
     this.listbox = listbox;
     listbox.ManipulationStateChanged += listbox_ManipulationStateChanged;
     listbox.MouseMove += listbox_MouseMove;
 }
Beispiel #2
0
 public void Bind(ExtendedListBox listbox)
 {
     lb       = listbox;
     resource = listbox.Loader.Resource;
     lb.ManipulationStateChanged += lb_ManipulationStateChanged;
     Bound = true;
 }
Beispiel #3
0
 public void Unbind()
 {
     Bound = false;
     lb.ManipulationStateChanged -= lb_ManipulationStateChanged;
     lb       = null;
     resource = null;
 }
Beispiel #4
0
        public void Bind(ExtendedListBox listbox)
        {
            list = listbox;
            list.StretchingBottom += list_StretchingBottom;
            list.StretchingTop    += list_StretchingTop;

            Bound = true;
        }
Beispiel #5
0
        public void Unbind()
        {
            if (lb != null)
            {
                lb.ItemRealized -= lb_ItemRealized;
            }

            lb = null;
        }
Beispiel #6
0
        public void Bind(ExtendedListBox list)
        {
            listbox = list;
            listbox.LayoutUpdated += OnLayoutUpdate;
            scrollViewer           = listbox.Descendants().OfType <ScrollViewer>().FirstOrDefault();
            scrollOffsetMargin     = 0.5 * scrollViewer.ViewportHeight;

            Bound = true;
        }
Beispiel #7
0
        public void Unbind()
        {
            var tmpLb = lb;

            scrollViewer = null;
            lb           = null;
            Deployment.Current.Dispatcher.InvokeIfRequired(() => tmpLb.ManipulationCompleted -= lb_ManipulationCompleted);

            Bound = false;
        }
Beispiel #8
0
        public void Bind(ExtendedListBox listbox)
        {
            lb = listbox;

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


            Bound = true;
        }
Beispiel #9
0
        public void Bind(ExtendedListBox listbox)
        {
            lb = listbox;

            scrollViewer = lb.Descendants().OfType <ScrollViewer>().FirstOrDefault();

            if (scrollViewer == null)
            {
                throw new NotSupportedException("ExtendedListbox must have an underlying ScrollViewer");
            }

            lb.ManipulationCompleted += lb_ManipulationCompleted;

            Bound = true;
        }
Beispiel #10
0
 public void Bind(ExtendedListBox list)
 {
     Bound = true;
 }
Beispiel #11
0
 public void Bind(ExtendedListBox listbox)
 {
     lb = listbox;
     lb.ItemRealized += lb_ItemRealized;
 }