Example #1
0
        public SourceListPage()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
            DefaultViewModel = App.Kernel.Get<SourcePageViewModel>();
            DataContext = DefaultViewModel;
        }
Example #2
0
        public Categories()
        {
            this.InitializeComponent();

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

            DefaultViewModel = App.Kernel.Get<CategoriesViewModel>();
            DataContext = DefaultViewModel;
        }
Example #3
0
        public FeedViewerPage()
        {
            this.InitializeComponent();
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            DefaultViewModel = App.Kernel.Get<FeedViewerPageViewModel>();
            DataContext = DefaultViewModel;
            DefaultViewModel.Connection = IsConnection();
        }
Example #4
0
        public FeedsPage()
        {
            this.InitializeComponent();

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

            DefaultViewModel = App.Kernel.Get<FeedPageViewModel>();
            DataContext = DefaultViewModel;
            DefaultViewModel.FeedUpdate = "Défilez vers le bas pour obtenir plus de flux";
        }
Example #5
0
        public LoginPage()
        {
            this.InitializeComponent();

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

            DefaultViewModel = App.Kernel.Get<LoginPageViewModel>();
            DataContext = DefaultViewModel;
            if (_settings.Values.Count != 0)
            {
                LoginTextBox.Text = _settings.Values.ContainsKey("Login") ? _settings.Values["Login"] as String : String.Empty;

            }

        }