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

can support for wpf? #30

Open
luluxiaoyu opened this issue May 8, 2022 · 3 comments
Open

can support for wpf? #30

luluxiaoyu opened this issue May 8, 2022 · 3 comments
Assignees

Comments

@luluxiaoyu
Copy link

can support for wpf?
If so, how?

@aksoftware98
Copy link
Owner

Hi,

Thanks for reaching out, of course, you can use it with any .NET application. I will make sure to prepare the sample here shortly for you, but let me know if you are using any MVVM framework while interacting with the WPF project

@luluxiaoyu
Copy link
Author

Hi,

Thanks for reaching out, of course, you can use it with any .NET application. I will make sure to prepare the sample here shortly for you, but let me know if you are using any MVVM framework while interacting with the WPF project

I just want to know how should define the namespace of the lib in xaml?

@aksoftware98
Copy link
Owner

Please if you can take a look at this file here that will help you
https://github.com/aksoftware98/multilanguages/tree/master/src/AKSoftware.Localization.MultiLanguages.UWP

The previous link is the UWP version of the library which is somehow similar for WPF, you have the folder that called Extensions
https://github.com/aksoftware98/multilanguages/blob/master/src/AKSoftware.Localization.MultiLanguages.UWP/Extensions/LocalizeStringExtension.cs

you can use this to access your keys from the XAML
And this is a sample UWP application of how to use it, just make the required changes to make it work for WPF the same way it works for UWP
https://github.com/aksoftware98/multilanguages/tree/master/src/UwpAkLocalization

I'm working on the .NET MAUI, Xamarin.Forms and WPF version, they will be available at mid August on NuGet.

Sorry for late response and thanks for your point

@aksoftware98 aksoftware98 self-assigned this Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants