winforms - WPF Form within a Windows Forms project -
i have existing windows forms project.
can create additional wpf/xaml window (a full new window) within such project?
visual studio not offer option, think should possible somehow, @ least via code?
for job must add references win-form projects:
- presentationcore
- presentationframework
- windowsbase
- system.xaml
and host wpf windows in winform or win32 apps need line before .show()
wpf window:
system.windows.forms.integration.elementhost.enablemodelesskeyboardinterop(mywpfwindow);
see http://msdn.microsoft.com/en-us/library/aa348549.aspx
helpful link: mixing wpf , winforms
Comments
Post a Comment