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

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

            lb = null;
        }
예제 #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;
        }
예제 #7
0
        public void Unbind()
        {
            var tmpLb = lb;

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

            Bound = false;
        }
예제 #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;
        }
예제 #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;
        }
예제 #10
0
 public void Bind(ExtendedListBox list)
 {
     Bound = true;
 }
예제 #11
0
 public void Bind(ExtendedListBox listbox)
 {
     lb = listbox;
     lb.ItemRealized += lb_ItemRealized;
 }