aksoftware98/multilanguages

can support for wpf?

Opened this issue · 3 comments

can support for wpf?
If so, how?

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

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?

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