[英]Host a standard UWP control in a WPF app using XAML Islands
I have used the following example to host a standard UWP control in a WPF app using XAML Islands: https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/host-standard-control-with- xaml 群島
但如果我說到重點:
- 在 WPF 項目中,右鍵單擊 Dependencies 節點並添加對 UWP 應用項目的引用。
我收到以下錯誤:
無法添加對項目的引用...
為什么這不起作用?
在 WPF 項目中,右鍵單擊Dependencies節點並添加對 UWP 應用項目的引用。
恐怕您無法將 UWP 項目添加到 WPF 應用程序(.NET Framework)。 因為它不包含Dependencies
選項。
I tried create .NET Core WPF App(if you want to create a WPF App (.NET Core) project, you must first install the latest version of the .NET Core 3 SDK .) app and add UWP reference, and it's success. 請確保目標版本和最低版本都設置為 Windows 10,版本 1903 或更高版本。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.