public DataSyncingSettingPage()
 {
     this.InitializeComponent();
     this.viewModel = new SettingPageViewModel(AppSetting.Instance);
     TiltEffect.SetIsTiltEnabled(this, true);
     this.SyncSettingGrid.DataContext = this.viewModel;
 }
        public SettingPage()
        {
            InitializeComponent();
            if (viewModel == null)
                viewModel = new SettingPageViewModel(AppSetting.Instance);

            TiltEffect.SetIsTiltEnabled(this, true);

            SettingEntries.DataContext = viewModel;

            this.Loaded += new RoutedEventHandler(SettingPage_Loaded);
        }
 public CommonSettingPage()
 {
     this.InitializeComponent();
     TiltEffect.SetIsTiltEnabled(this, true);
     this.viewModel = new SettingPageViewModel(AppSetting.Instance);
     base.DataContext = this.viewModel;
     this.DefaultCurrency.ItemsSource = CurrencyHelper.CurrencyTable;
     this.currencyStyleList = new ObservableCollection<string> { "", "" };
     this.SetCurrencyStyle(AppSetting.Instance.CurrencyInfo);
     this.CurrencySymbolStyle.ItemsSource = this.currencyStyleList;
     base.BackKeyPress += new System.EventHandler<CancelEventArgs>(this.CommonSettingPage_BackKeyPress);
 }
 public ProfileSettingPage()
 {
     base.Resources.Add("SameAsSystem", AppResources.SameAsSystem);
     base.Resources.Add("SupportDisplayLanguages", LanguageType.SupportDisplayLanguages);
     this.InitializeComponent();
     this.aph = new ApplicationBarHelper(this);
     this.aph.SelectContentWhenFocus = true;
     this.aph.AddTextBox(new TextBox[] { this.AppNameTextBox });
     TiltEffect.SetIsTiltEnabled(this, true);
     this.viewModel = new SettingPageViewModel(AppSetting.Instance);
     this.oldAppName = AppSetting.Instance.AppName;
     base.DataContext = this.viewModel;
     base.Loaded += new RoutedEventHandler(this.ProfileSettingPage_Loaded);
 }