You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
620 B

using System.ComponentModel;
namespace ex_Localization3.Resources.Localization;
public class AppResourcesVM : INotifyPropertyChanged
{
public event PropertyChangedEventHandler? PropertyChanged;
void OnPropertyChanged(string propertyName)
=> PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
public System.Globalization.CultureInfo Culture
{
get => AppResources.Culture;
set
{
if(AppResources.Culture == value) return;
AppResources.Culture = value;
OnPropertyChanged("Culture");
}
}
}