multilanguages icon indicating copy to clipboard operation
multilanguages copied to clipboard

can support for wpf?

Open luluxiaoyu opened this issue 3 years ago • 3 comments

can support for wpf?
If so, how?

luluxiaoyu avatar May 08 '22 01:05 luluxiaoyu

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

aksoftware98 avatar May 14 '22 08:05 aksoftware98

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?

luluxiaoyu avatar May 14 '22 12:05 luluxiaoyu

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 avatar Jul 25 '22 09:07 aksoftware98