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; }
public void Unbind() { Bound = false; lb.ManipulationStateChanged -= lb_ManipulationStateChanged; lb = null; resource = null; }
public void Bind(ExtendedListBox listbox) { list = listbox; list.StretchingBottom += list_StretchingBottom; list.StretchingTop += list_StretchingTop; Bound = true; }
public void Unbind() { if (lb != null) { lb.ItemRealized -= lb_ItemRealized; } lb = null; }
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 Unbind() { var tmpLb = lb; scrollViewer = null; lb = null; Deployment.Current.Dispatcher.InvokeIfRequired(() => tmpLb.ManipulationCompleted -= lb_ManipulationCompleted); Bound = false; }
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 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; }
public void Bind(ExtendedListBox list) { Bound = true; }
public void Bind(ExtendedListBox listbox) { lb = listbox; lb.ItemRealized += lb_ItemRealized; }