Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Uno Platform #53

Open
MartinZikmund opened this issue Oct 21, 2024 · 7 comments
Open

Support for Uno Platform #53

MartinZikmund opened this issue Oct 21, 2024 · 7 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@MartinZikmund
Copy link

It would be awesome if Uno Platform was also supported

@AndrewKeepCoding
Copy link
Owner

Hi Martin! Thanks for stopping by!😄

As I posted the other day, at least it seems to work on WinUI and WASM.

uno-winappsdk-winui3localizer.mp4

Now, for the other platforms I guess I'll need to pick your brain. The location of the "Strings" folder, to be specific.

It could be anywhere as long as the app can access it by a given path when initialized. For example:

App Type "Strings" Folder Location Example
WinUI (Packaged) ApplicationData.Current.LocalFolder
WinUI (Unpackaged) Aside the *.exe file

Where would it be for the other platforms?

@AndrewKeepCoding AndrewKeepCoding added this to the v3 milestone Oct 21, 2024
@AndrewKeepCoding AndrewKeepCoding self-assigned this Oct 21, 2024
@AndrewKeepCoding AndrewKeepCoding added the enhancement New feature or request label Oct 21, 2024
@MartinZikmund
Copy link
Author

Technically you should be able to use ApplicationData.Current.LocalFolder in all targets, that location is accessible (even via classic System.IO APIs) across all targets

@AndrewKeepCoding
Copy link
Owner

Then, "Technically", it should work out of the box! 😀
I'll try to confirm it (in a couple of days).

@AndrewKeepCoding
Copy link
Owner

AndrewKeepCoding commented Oct 25, 2024

It does work out of the box for WASDK but not for the other platforms. 😅
I'll take a look other lib (Live Charts maybe?) that supports Uno. Please let me know if you have any recommendation.🙂

@MartinZikmund
Copy link
Author

@AndrewKeepCoding you will probably need to add multi-targeting (e.g. multiple target frameworks) - or you can create the library based on the Uno Platform Library project template.

@AndrewKeepCoding
Copy link
Owner

I meed to create separate projects and packages, right?

@AndrewKeepCoding
Copy link
Owner

AndrewKeepCoding commented Dec 13, 2024

AttachedProperty setter is not called in XAML when named Uid.
This happens on:

  • Android
  • WASM
  • Desktop
  • MacOS

It works as expected:

  • on WASDK
  • when the AttachedProperty has other name
  • when the setter is called on C# code

unoplatform/uno#19069

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants