Comments (9)
The repro uses xmlns:skia="using:SkiaSharp.Views.Windows"
. The skia
namespace is used by the XAML generator to make add platform-specific controls. Use any other name instead of skia
to avoid this problem. Remaining to skia2
fixed the problem (thanks @Youssef1313 for noticing this).
from uno.
Raising a warning if the xmlns does not match the original name could be useful, indeed.
from uno.
Please also validate the behavior against WinUI implementation
from uno.
If this behavior is hot reload related, it's not fixed yet and may need to have 8.0.101 to work properly (it's still pending inhttps://github.com/unoplatform/uno.check/pull/223)
from uno.
@ramezgerges @Youssef1313 @jeromelaban I think it might make sense to detect this and warn the user:
- Warn if any of our "default prefixes" is used with a different URI than what is defined in https://platform.uno/docs/articles/platform-specific-xaml.html#available-prefixes
- Or warn specifically for the combination of "xmlns:skia" and "using:SkiaSharp.XYZ"
What do you think?
from uno.
@MartinZikmund That would be a duplicate of #14004 I think.
We could treat xmlns:any_platform="using:...
as a CLR namespace instead of a conditional xmlns.
from uno.
Thanks for looking into this! As you say, after changing the xmlns to something else, it works now.
from uno.
@MartinZikmund should we close this in favour of #15064?
from uno.
@ramezgerges this is a bit different than the other I think - this is to validate the URI matches, so it would apply even to prefixes like "android:" etc. The other is for usage of Skia and wasm secifically on non cross runtime libraries
from uno.
Related Issues (20)
- Request: Flyout stays open when putting app in background HOT 3
- Newly created Project with MSAL Authentication crashes HOT 1
- Indicate to add the built-in style when creating a dialog based on ContentDialog HOT 6
- [WASM][Regression] Upgrading from 5.1 -> 5.2 completely breaks the .PointerEntered/.PointerExited handling HOT 4
- [skia][macOS] CheckBox text in a dialog is not aligned with the square HOT 1
- [skia][macOS] Button height inconsistency in a page and ContentDialog
- [skia][macOS] TextBox/RadioButtons/ComboBox/CheckBox/Button/InfoBar texts are not properly aligned vertically HOT 3
- Cannot generate WinUI package "The target "_GenerateAppxPackage" does not exist in the project." HOT 6
- [RelativeSource] Inconsistency involving Self and TemplatedParent between Uno and Windows HOT 2
- Add a file open picker & edit manual test
- tews
- test
- Programmatic changes to `TextBox.Text` don't flow to ViewModel via TwoWay binding
- [Description] in Uno samples App HOT 1
- [Uno.sdk] The app doesnt build when you add some packages
- [skia][wpf] The full screen window is unstable
- `Canvas_DependentAnimation` is not showing an animated circle HOT 1
- Can't add a new Uno application project to an existing solution in VS2022 HOT 1
- `TimePicker` invisible selection text
- NuGet package override does not work for `net8.0-ios` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uno.