public SettingsPage() { InitializeComponent(); DataContext = UnigramContainer.Current.Resolve <SettingsViewModel, IUserDelegate>(this); NavigationCacheMode = NavigationCacheMode.Required; Diagnostics.Text = $"Unigram X {AboutViewModel.GetVersion()}"; }
public SettingsPage() { InitializeComponent(); DataContext = UnigramContainer.Current.ResolveType <SettingsViewModel>(); ViewModel.Delegate = this; NavigationCacheMode = NavigationCacheMode.Required; Diagnostics.Text = $"Unigram X {AboutViewModel.GetVersion()}"; //#if DEBUG // var optionAccounts = new HyperButton(); // optionAccounts.Style = App.Current.Resources["HyperButtonStyle"] as Style; // optionAccounts.Click += Accounts_Click; // optionAccounts.Content = "Accounts management"; // OptionsGroup3.Children.Clear(); // OptionsGroup3.Children.Add(optionAccounts); //#endif }