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 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; }
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; }