public Homescreen()
        {
            Debug.WriteLine("Starting constructor of Homescreen.");
            this.InitializeComponent();

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

            HomescreenPivot.Loaded += HomescreenPivot_Loaded;

            // Diese Seite soll wenn möglich im Cache gehalten werden.
            NavigationCacheMode = NavigationCacheMode.Enabled;

            // Initialisiere Homescreen ViewModel.
            homescreenViewModel = new HomescreenViewModel(App.NavigationService, App.ErrorMapper);
            this.DataContext = homescreenViewModel;

            // Initialisiere das Drawer Layout.
            DrawerLayout.InitializeDrawerLayout();
            List<DrawerMenuEntry> test = homescreenViewModel.DrawerMenuEntriesStatusNoLogin;
            ListMenuItems.ItemsSource = test;

            // Registriere Loaded und Unloaded Events.
            this.Loaded += Homescreen_Loaded;
            this.Unloaded += Homescreen_Unloaded;

            Debug.WriteLine("Finished constructor of Homescreen.");
        }
        public StartPage()
        {
            this.InitializeComponent();

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

            // Erzeuge Referenz auf das ViewModel für die Startseite.
            startPageViewModel = new StartPageViewModel(App.NavigationService, App.ErrorMapper);
            this.DataContext = startPageViewModel;
        }
        public AboutUniversityNews()
        {
            this.InitializeComponent();

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

            aboutUniversityNewsViewModel = new AboutUniversityNewsViewModel(App.NavigationService, App.ErrorMapper);
            this.DataContext = aboutUniversityNewsViewModel;

            DrawerLayout.InitializeDrawerLayout();
            ListMenuItems.ItemsSource = aboutUniversityNewsViewModel.LoadDrawerMenuEntries();
        }
        public LoginPage()
        {
            this.InitializeComponent();

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

            loginViewModel = new LoginViewModel(App.NavigationService, App.ErrorMapper);
            this.DataContext = loginViewModel;

            // Initialisiere das Drawer Layout.
            DrawerLayout.InitializeDrawerLayout();
            ListMenuItems.ItemsSource = loginViewModel.DrawerMenuEntriesStatusNoLogin;
        }
        public ReminderDetails()
        {
            this.InitializeComponent();

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

            reminderDetailsViewModel = new ReminderDetailsViewModel(App.NavigationService, App.ErrorMapper);
            this.DataContext = reminderDetailsViewModel;

            // Initialisiere das Drawer Layout.
            DrawerLayout.InitializeDrawerLayout();
            ListMenuItems.ItemsSource = reminderDetailsViewModel.LoadDrawerMenuEntries();
        }
        public ApplicationSettings()
        {
            this.InitializeComponent();

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

            // Initialisiere ApplicationSettings ViewModel.
            applicationSettingsViewModel = new ApplicationSettingsViewModel(App.NavigationService, App.ErrorMapper);
            this.DataContext = applicationSettingsViewModel;

            // Initialisiere das Drawer Menü.
            DrawerLayout.InitializeDrawerLayout();
            ListMenuItems.ItemsSource = applicationSettingsViewModel.LoadDrawerMenuEntries();
        }
        public AddAnnouncement()
        {
            this.InitializeComponent();

            Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed;
            this.Unloaded += AddAnnouncement_Unloaded;

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
              
            addAnnouncementViewModel = new AddAnnouncementViewModel(App.NavigationService, App.ErrorMapper);
            this.DataContext = addAnnouncementViewModel;

            // Initialisiere das Drawer Menü.
            DrawerLayout.InitializeDrawerLayout();
            ListMenuItems.ItemsSource = addAnnouncementViewModel.DrawerMenuEntriesStatusLoggedIn;
        }
        public HomescreenModerator()
        {
            this.InitializeComponent();

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

            // Aktiviere Caching für diese Seite.
            NavigationCacheMode = NavigationCacheMode.Enabled;

            moderatorHomescreenViewModel = new ModeratorHomescreenViewModel(App.NavigationService, App.ErrorMapper);
            this.DataContext = moderatorHomescreenViewModel;

            // Initialisiere das Drawer Layout.
            DrawerLayout.InitializeDrawerLayout();
            ListMenuItems.ItemsSource = moderatorHomescreenViewModel.DrawerMenuEntriesStatusLoggedIn;    
        }
        public SearchGroups()
        {
            this.InitializeComponent();

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

            searchGroupViewModel = new SearchGroupViewModel(App.NavigationService, App.ErrorMapper);
            this.DataContext = searchGroupViewModel;

            // Diese Seite soll wenn möglich im Cache gehalten werden.
            NavigationCacheMode = NavigationCacheMode.Enabled;

            // Initialiese das Drawer Layout.
            DrawerLayout.InitializeDrawerLayout();
            ListMenuItems.ItemsSource = searchGroupViewModel.DrawerMenuEntriesStatusNoLogin;
        }
        public ConversationDetails()
        {
            this.InitializeComponent();

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

            conversationDetailsViewModel = new ConversationDetailsViewModel(App.NavigationService, App.ErrorMapper);
            this.DataContext = conversationDetailsViewModel;

            // Initialisiere das Drawer Layout.
            DrawerLayout.InitializeDrawerLayout();
            ListMenuItems.ItemsSource = conversationDetailsViewModel.LoadDrawerMenuEntries();

            // Registriere Seite für Loaded und Unloaded Events.
            this.Loaded += ConversationDetails_Loaded;
            this.Unloaded += ConversationDetails_Unloaded;
        }
        public ModeratorChannelDetails()
        {
            this.InitializeComponent();

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

            moderatorChannelDetailsViewModel = new ModeratorChannelDetailsViewModel(App.NavigationService, App.ErrorMapper);
            this.DataContext = moderatorChannelDetailsViewModel;

            // Initialisiere das Drawer Layout.
            DrawerLayout.InitializeDrawerLayout();
            ListMenuItems.ItemsSource = moderatorChannelDetailsViewModel.DrawerMenuEntriesStatusLoggedIn;

            // Registriere für Loaded und Unloaded Event der Seite.
            this.Loaded += ModeratorChannelDetails_Loaded;
            this.Unloaded += ModeratorChannelDetails_Unloaded;
        }
        public ChannelDetails()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;
           
            channelDetailsViewModel = new ChannelDetailsViewModel(App.NavigationService, App.ErrorMapper);
            this.DataContext = channelDetailsViewModel;

            // Initialisiere das Drawer Layout.
            DrawerLayout.InitializeDrawerLayout();
            ListMenuItems.ItemsSource = channelDetailsViewModel.DrawerMenuEntriesStatusNoLogin;

            // Registrierung für Loaded und Unloaded Events.
            ChannelDetailsPivot.Loaded += ChannelDetailsPivot_Loaded;
            this.Loaded += ChannelDetails_Loaded;
            this.Unloaded += ChannelDetails_Unloaded;

            channelDetailsViewModel.PropertyChanged += channelDetailsViewModel_PropertyChanged;
        }
        public GroupDetails()
        {
            this.InitializeComponent();

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

            groupDetailsViewModel = new GroupDetailsViewModel(App.NavigationService, App.ErrorMapper);
            this.DataContext = groupDetailsViewModel;

            // Initialiisierung des Drawer Menüs.
            DrawerLayout.InitializeDrawerLayout();
            ListMenuItems.ItemsSource = groupDetailsViewModel.LoadDrawerMenuEntries();

            // Registriere Property-Changed Listener.
            groupDetailsViewModel.PropertyChanged += GroupDetailsViewModel_PropertyChanged;

            // Registriere Loaded und Unloaded Event-Listener.
            this.Loaded += GroupDetails_Loaded;
            this.Unloaded += GroupDetails_Unloaded;
        }