The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
In Window1.xaml.cs I find the following code section. Could someone explain this to me? private void InitWindowsFormsHost() { if( DockingManager.UseInteropCompatibilityMode ) { WindowsFormsHost host = new WindowsFormsHost(); WinForms.Button btn = new WinForms.Button(); btn.Text = "Winows Forms Button"; host.Child = btn; FindResults.Content = host; WindowsFormsHost.EnableWindowsFormsInterop(); } }
DCDavid C Syncfusion Team June 7, 2010 11:55 AM UTC
Hi Christoph,
Thanks for your interest in Syncfusion products.
Basically we set UseInteropCompatibilityMode to true when we use WinForms controls in DockingManager of WPF. By the code snippet, we place WinForms's Button inside of the ContentControl(FindResults). WindowsFormsHost.EnableWindowsFormsInterop() funtion enables a System.Windows.Forms.Form to function correctly when it is opened modelessly from WPF