Code Monkey home page Code Monkey logo

Comments (9)

ramezgerges avatar ramezgerges commented on June 3, 2024 1

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.

jeromelaban avatar jeromelaban commented on June 3, 2024 1

Raising a warning if the xmlns does not match the original name could be useful, indeed.

from uno.

MartinZikmund avatar MartinZikmund commented on June 3, 2024

Please also validate the behavior against WinUI implementation

from uno.

jeromelaban avatar jeromelaban commented on June 3, 2024

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.

MartinZikmund avatar MartinZikmund commented on June 3, 2024

@ramezgerges @Youssef1313 @jeromelaban I think it might make sense to detect this and warn the user:

  1. 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
  2. Or warn specifically for the combination of "xmlns:skia" and "using:SkiaSharp.XYZ"

What do you think?

from uno.

Youssef1313 avatar Youssef1313 commented on June 3, 2024

@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.

Cheesebaron avatar Cheesebaron commented on June 3, 2024

Thanks for looking into this! As you say, after changing the xmlns to something else, it works now.

from uno.

ramezgerges avatar ramezgerges commented on June 3, 2024

@MartinZikmund should we close this in favour of #15064?

from uno.

MartinZikmund avatar MartinZikmund commented on June 3, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.