Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 我可以将Xamarin.Forms ContentPage或ContentView嵌入Wpf窗口以快速使用UI吗?_C#_Wpf_Xamarin.forms - Fatal编程技术网

C# 我可以将Xamarin.Forms ContentPage或ContentView嵌入Wpf窗口以快速使用UI吗?

C# 我可以将Xamarin.Forms ContentPage或ContentView嵌入Wpf窗口以快速使用UI吗?,c#,wpf,xamarin.forms,C#,Wpf,Xamarin.forms,我有一个WPF应用程序,它当前只是一个带有支持viewmodel的窗口,viewmodel有一个Xamarin.Forms中的VisualElement属性,该属性是用.Net标准2.0库中的Xamarin.Forms ContentPage设置的,VisualElement试图在ContentPresenter中显示,但我在窗口中只得到了一个类型名称(如预期的那样)。我将使用ContentPage,但我不希望总是在Hyper-V emulator上构建,而是希望在桌面的窗口中快速查看我对UI和

我有一个WPF应用程序,它当前只是一个带有支持viewmodel的窗口,viewmodel有一个Xamarin.Forms中的VisualElement属性,该属性是用.Net标准2.0库中的Xamarin.Forms ContentPage设置的,VisualElement试图在ContentPresenter中显示,但我在窗口中只得到了一个类型名称(如预期的那样)。我将使用ContentPage,但我不希望总是在Hyper-V emulator上构建,而是希望在桌面的窗口中快速查看我对UI和功能的更改

可以这样做吗?

可以。允许您这样做