Пример #1
0
        void Init(object s, CultureChangedMessage ccm)
        {
            var res = App.Accounts.Resources;

            ListView.ItemsSource = new ArraySegment <SearchPageMasterMenuItem>(new SearchPageMasterMenuItem[]
            {
                new SearchPageMasterMenuItem()
                {
                    Title = res["SearchMenuMain"], IconSourcePath = "https://image.flaticon.com/icons/png/512/38/38298.png", TargetType = typeof(SearchPageDetail), Id = 0
                },
                new SearchPageMasterMenuItem()
                {
                    Title = res["SearchMenuFavorites"], IconSourcePath = "https://image.flaticon.com/icons/png/512/69/69904.png", TargetType = typeof(MenuItems.FavoritesPage), Id = 2
                },
                new SearchPageMasterMenuItem()
                {
                    Title = res["SearchMenuAccount"], IconSourcePath = "https://image.flaticon.com/icons/png/512/64/64096.png", TargetType = typeof(MenuItems.AccountPage), Id = 3
                },
                new SearchPageMasterMenuItem()
                {
                    Title = res["SearchMenuSettings"], IconSourcePath = "https://img.icons8.com/cotton/2x/settings--v1.png", TargetType = typeof(MenuItems.SettingsPage), Id = 4
                },
            });
        }
Пример #2
0
 void OnLanguageChanged(object s, CultureChangedMessage ccm)
 {
     currentCultureInfo = ccm.NewCultureInfo;
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Item"));
 }