uno: Control Library Styles Not Working
Current behavior
Using this documentation to create a control library for my existing Uno project doesn’t work. The control never have it’s default style used.
Expected behavior
The control should have it’s default style used.
How to reproduce it (as minimally and precisely as possible)
- Download BringTemplate.zip
- Start the solution with Visual Studio
- Start the application on Windows
- Notice that the page is empty
Workaround
Using Uno.XamlMerge.Task and directly referencing project together instead of using a NuGet worked but that’s not an option for the project.
Works on UWP/WinUI
No
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
4.7.37
Affected platforms
Android, iOS, Windows
IDE
Visual Studio 2022
IDE version
17.4.5
Relevant plugins
No response
Anything else we need to know?
I did not try the mobile platforms on the sample application because I was having weird issues with the new Uno application template (I did not compile and was complaining about targets). But I know from my other project that it also doesn’t work on mobile.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 25 (8 by maintainers)
What do you mean? You can take a look at this document if you have questions on the app structure.
Thanks. Another technique to debug this to enable “native debugging” and run the app again.
Try breaking on all exceptions, the error message generally appears at that time.
Thanks I’ll take a look, and also the Shared project is used because it’s a library that target both WinUI(net6) and Xamarin so we have a .Uno and .Uno.WinUI head.