-
Notifications
You must be signed in to change notification settings - Fork 750
Migrating to the new WpfHost #16586
Replies: 2 comments · 9 replies
-
@DomagojJugovich You were following these instructions right? I quickly checked your sample app and first you were missing the default App constructor. @jeromelaban wondering if we need to adjust the current documentation here in case there is no |
Beta Was this translation helpful? Give feedback.
All reactions
-
Here is complete solution, with all manglings from above : |
Beta Was this translation helpful? Give feedback.
All reactions
-
It looks like this block: uno/build/nuget/uno.winui.common.targets Line 225 in 4b8dae3
is not being executed in your context, which is supposed to remove the files not supported by Wpf. You may want to consider moving to the single project where the WPF files do not need to be included and won't be used by the toolchain (the app is not a |
Beta Was this translation helpful? Give feedback.
All reactions
-
I went to migrate to single project , only to see after a couple hours that it does not support UWP. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Porting to WinUI can be done relatively easily with this doc. Let us know if you're missing something! |
Beta Was this translation helpful? Give feedback.
All reactions
-
Beta Was this translation helpful? Give feedback.
All reactions
-
@DomagojJugovich there's some docs on using Uno.Extensions navigation for a variety of scenarios. Routes are important to use navigation but there is automatic registration (which uses reflection) which allows you to navigate by name for page or viewmodels (ie the route would be "Main" for a page called MainPage or viewmodel called MainViewModel). |
Beta Was this translation helpful? Give feedback.
All reactions
-
Can you see from debug output why my back navigation doesn't work for this simple scenario for a start. OK, I will ask on extension discussion. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Related discussion for Uno.Extensions: |
Beta Was this translation helpful? Give feedback.
-
I cant make it to work in existing app that I am upgrading to .2 , but for simplicity I created blank app with new templates and tried there. Maybe I don't understand migrate instructions.
But here is whole VS 2022 solution to see, new just created from new templates, only thing changed is from short instruction on : Migrating to the new WpfHost.
Please see what I am doing wrong, I want WPF head to work.
Inventura.zip
THX , Domagoj
Beta Was this translation helpful? Give feedback.
All reactions