ChromiumWebBrowserCleanupElement Property |
Version 101.0.180
The CleanupElement Controls when the BrowserResources will be cleaned up.
The ChromiumWebBrowser will register on Unloaded of the provided Element and dispose all resources when that handler is called.
By default the cleanup element is the Window that contains the ChromiumWebBrowser.
if you want cleanup to happen earlier provide another FrameworkElement.
Be aware that this Control is not usable anymore after cleanup is done.
Namespace:
CefSharp.Wpf
Assembly:
CefSharp.Wpf (in CefSharp.Wpf.dll) Version: 101.0.180.0 (101.0.180.0)
Syntax public FrameworkElement CleanupElement { get; set; }
public:
property FrameworkElement^ CleanupElement {
FrameworkElement^ get ();
void set (FrameworkElement^ value);
}
Property Value
Type:
FrameworkElementThe cleanup element.
See Also