示例#1
0
        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();
        }
示例#2
0
 private void OnClosing(ContentDialog sender, ContentDialogClosingEventArgs args)
 {
     _handler.UnloadItems();
     _zoomer.Release();
 }