private void OnLoaded(object sender, RoutedEventArgs eventArgs) { if (GraphicsService == null) { return; } _textureGraphicsScreen = new TextureGraphicsScreen(GraphicsService); GraphicsScreens = new GraphicsScreen[] { _textureGraphicsScreen }; UpdateGraphicsScreen(); }
private void OnUnloaded(object sender, RoutedEventArgs eventArgs) { _textureGraphicsScreen.SafeDispose(); _textureGraphicsScreen = null; GraphicsScreens = null; }