void MainWindowLoaded(object sender, RoutedEventArgs e) { IntPtr wnd = editor_wnd.Handle; core_ = new KlayGE.MtlEditorCoreWrapper(wnd); CompositionTarget.Rendering += this.MainWindowIdle; }
void MainWindowUnloaded(object sender, RoutedEventArgs e) { CompositionTarget.Rendering -= this.MainWindowIdle; core_.Dispose(); core_ = null; }
void MainWindowLoaded(object sender, RoutedEventArgs e) { IntPtr wnd = editor_wnd.Handle; core_ = new KlayGE.MtlEditorCoreWrapper(wnd); core_.UpdateSelectEntityCallback(this.UpdateSelectEntity); CompositionTarget.Rendering += this.MainWindowIdle; }