diff --git a/src/TcoCore/src/TcoCore.Wpf/TcoDialog/TcoDialog/TcoCustomizedDialogDialogView.xaml b/src/TcoCore/src/TcoCore.Wpf/TcoDialog/TcoDialog/TcoCustomizedDialogDialogView.xaml
index e2f385410..16fc6c0d9 100644
--- a/src/TcoCore/src/TcoCore.Wpf/TcoDialog/TcoDialog/TcoCustomizedDialogDialogView.xaml
+++ b/src/TcoCore/src/TcoCore.Wpf/TcoDialog/TcoDialog/TcoCustomizedDialogDialogView.xaml
@@ -18,6 +18,7 @@
SizeToContent="WidthAndHeight"
Title="InspectorDialogueWindow"
Topmost="True"
+ Closing="TcoDialogBaseView_Closing"
WindowStartupLocation="CenterScreen"
xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
WindowStyle="None">
@@ -57,7 +58,7 @@
Style="{StaticResource MaterialDesignHeadline5TextBlock}"
Text="{Binding Dialog._caption.Synchron}" />
-
+
@@ -59,7 +59,7 @@
HorizontalAlignment="Center"
Style="{StaticResource MaterialDesignHeadline5TextBlock}"
Text="{Binding Dialog._caption.Synchron}" />
-
+
-
diff --git a/src/TcoInspectors/src/Wpf/TcOpen.Inxton.TcoInspectors.Wpf/Abstractions/InspectorDialogue/TcoInspectorDialogDialogView.xaml.cs b/src/TcoInspectors/src/Wpf/TcOpen.Inxton.TcoInspectors.Wpf/Abstractions/InspectorDialogue/TcoInspectorDialogDialogView.xaml.cs
index d3722268a..c680727d2 100644
--- a/src/TcoInspectors/src/Wpf/TcOpen.Inxton.TcoInspectors.Wpf/Abstractions/InspectorDialogue/TcoInspectorDialogDialogView.xaml.cs
+++ b/src/TcoInspectors/src/Wpf/TcOpen.Inxton.TcoInspectors.Wpf/Abstractions/InspectorDialogue/TcoInspectorDialogDialogView.xaml.cs
@@ -74,5 +74,14 @@ public void Dispose()
context.CloseRequestEventHandler -= (s, ev) => this.Close();
}
}
+
+ private void HostWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
+ {
+ if (webView != null)
+ {
+ webView.Dispose();
+ webView = null;
+ }
+ }
}
}
\ No newline at end of file