Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Qm3 How to add the Winform controls
#5
I tried the code below and the Add method will prompt for the error 

b.Row(-1).Add(out WebView k);
Err:
<open "<0x100000034>|8|11">WebView_OE_WPF.cs(8,11): error CS0311: The type 'EO.WebBrowser.WebView' cannot be used as type parameter 'T' in the generic type or method 'wpfBuilder.Add<T>(out T, object, WBAdd)'. There is no implicit reference conversion from 'EO.WebBrowser.WebView' to 'System.Windows.FrameworkElement'.


C# code:
// script "WebView_OE_WPF.cs" /*/ role exeProgram; outputPath %folders.Workspace%\exe\WebView_OE_WPF; r %dll%\EO\EO.WebBrowser.dll; r %dll%\EO\EO.WebBrowser.WinForm.dll; r %dll%\EO\EO.Base.dll; r %dll%\EO\EO.WebEngine.dll; r %dll%\EO\EO.Wpf.dll; /*/

using EO.WebBrowser;

var b = new wpfBuilder("Window").WinSize(700, 600);

b.Row(-1).Add(out WebView k);
k.Url = new("https://www.quickmacros.com");
b.End();
if (!b.ShowDialog()) return;

QM3 creates the WPF dialog that doesn't require XAML code, which looks amazing,  Smile
Also, will QM3 have a WPF form designer? Like QM2?


Messages In This Thread
Qm3 How to add the Winform controls - by Davider - 08-16-2022, 02:29 AM
RE: Qm3 How to add the Winform controls - by Davider - 08-16-2022, 12:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)