Пример #1
0
        public void Release()
        {
            if (EditorCanvas == null)
            {
                return;
            }

            ReleaseControlPanel();

            EditorCanvas.RemoveFromVisualTree();
            EditorCanvas = null;
            IModel?.Release();
        }
Пример #2
0
 // Don't forget to do this! You'll leak memory otherwise!
 private void Page_Unloaded(object sender, RoutedEventArgs e)
 {
     EditorCanvas.RemoveFromVisualTree();
     EditorCanvas = null;
 }