void OnUnLoaded(object sender, RoutedEventArgs e) { DeInitInputEventRouting(); if (dragNDropController != null) { dragNDropController.Dispose(); dragNDropController = null; } autoScroller = null; Selection = null; isInitialized = false; }
public void Dispose() { dragNDropController?.Dispose(); autoScroller?.Dispose(); }