コード例 #1
0
 public DetailsPage()
 {
     this.InitializeComponent();
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
     this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
 }
コード例 #2
0
        public NavigatedPage()
            : base()
        {
            this.NavigationCacheMode = NavigationCacheMode.Required;

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += OnNavigationHelperLoadState;
            this.navigationHelper.SaveState += OnNavigationHelperSaveState;
        }
コード例 #3
0
 public DisplayAllView()
 {
     this.InitializeComponent();
     EntryRepository = new EntryRepository();
     NavigationHelper = new NavigationHelper(this);
     DefaultViewModel = new ObservableDictionary();
     NavigationHelper.LoadState += NavigationHelper_LoadState;
     NavigationHelper.SaveState += NavigationHelper_SaveState;
 }
        public AgricolaCalculatorView()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            this.DataContext = this.model;
        }
コード例 #5
0
 public AddNewView()
 {
     this.InitializeComponent();
     DefaultViewModel = new ObservableDictionary();
     Categories = DataHandler.Instance.GetUniqueCategories();
     ComboCategories.ItemsSource = Categories;
     NavigationHelper = new NavigationHelper(this);
     NavigationHelper.LoadState += NavigationHelper_LoadState;
     NavigationHelper.SaveState += NavigationHelper_SaveState;
     App = (App)Application.Current;
 }
コード例 #6
0
        public MainPage()
        {
            this.InitializeComponent();

            this.NavigationCacheMode = NavigationCacheMode.Required;
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += navigationHelper_LoadState;
            this.navigationHelper.SaveState += navigationHelper_SaveState;

            this.OpenAgricolaCalc = new RelayCommand(this.OpenAgricolaCalcInternal);
            this.GameName = "Open";
            this.DataContext = this;
        }
コード例 #7
0
ファイル: SearchPage.xaml.cs プロジェクト: telemat/Demo
        public SearchPage()
        {
            InitializeComponent();

            NavigationHelper = new NavigationHelper(this);
            NavigationHelper.LoadState += NavigationHelper_LoadState;
            NavigationHelper.SaveState += NavigationHelper_SaveState;

            if (! Windows.ApplicationModel.DesignMode.DesignModeEnabled)
            {
                if (ViewModel == null)
                {
                    ViewModel = Resolver.Instance.Resolve<SearchPageViewModel>();
                    DataContext = ViewModel;
                }
            }
        }
コード例 #8
0
 public EditView()
 {
     InitializeComponent();
     NavigationHelper = new NavigationHelper(this);
     App = (App)Application.Current;
 }
コード例 #9
0
ファイル: BasePage.cs プロジェクト: Lavan/DdpNet
 protected BasePage()
 {
     this.navigationHelper = new NavigationHelper(this);
     this.navigationHelper.LoadState += navigationHelper_LoadState;
     this.navigationHelper.SaveState += navigationHelper_SaveState;
 }