Ejemplo n.º 1
0
        public SettingsView()
        {
            this.InitializeComponent();

            this.ContentArea.DataContext = this;

            List <double> sizes = new List <double>();

            sizes.Add(0.5);
            sizes.Add(0.6);
            sizes.Add(0.8);
            sizes.Add(0.9);
            sizes.Add(1.0);
            sizes.Add(1.25);
            sizes.Add(1.5);
            sizes.Add(1.75);
            sizes.Add(2.0);
            this.SizeSelector.ItemsSource = sizes;

            List <LanguageOption> languages = new List <LanguageOption>();

            foreach ((string key, string name) in LocalizationService.GetAvailableLocales())
            {
                languages.Add(new LanguageOption(key, name));
            }

            this.Languages = languages;
        }