예제 #1
0
 private void OnWebViewIsBrowserInitializedChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     if (chromium.IsBrowserInitialized)
     {
         if (pendingInitialization != null)
         {
             pendingInitialization();
             pendingInitialization = null;
         }
         WebViewInitialized?.Invoke();
     }
     else
     {
         Dispose();
     }
 }
예제 #2
0
 private void OnWebViewBrowserInitialized()
 {
     if (IsBrowserInitialized)
     {
         AsyncExecuteInUI(() => {
             lock (SyncRoot) {
                 if (pendingInitialization != null)
                 {
                     pendingInitialization();
                     pendingInitialization = null;
                 }
             }
             WebViewInitialized?.Invoke();
         });
     }
     else
     {
         Dispose();
     }
 }