public void Deactivate() { _isActive = false; _handler.UnloadItems(); // This is called only right before XamlMarkupHelper.UnloadObject // so we can safely clean up any kind of anything from here. _zoomer.Release(); Bindings.StopTracking(); }
private void OnClosing(ContentDialog sender, ContentDialogClosingEventArgs args) { _handler.UnloadItems(); _zoomer.Release(); }