Beispiel #1
0
        private void ShowNotification()
        {
            splitContainerControl.PanelVisibility = SplitPanelVisibility.Panel2;

            ClearNavigation();
            ClearUserControl();

            NotificationListControl listNotification = Bootstrapper.Resolve <NotificationListControl>();

            ShowUserControl(listNotification);
        }
        private void ContentPivot_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            switch (ContentPivot.SelectedIndex)
            {
            case 1:
                if (NotificationFrame.Content == null)
                {
                    var notificationList = new NotificationListControl();
                    notificationList.NavigatingToAccount += (account) =>
                    {
                        NavigatingToAccount?.Invoke(account);
                    };
                    notificationList.NavigateToStatusDetail += (status) =>
                    {
                        ((Window.Current.Content as Frame).Content as TimeLinePage).DetailViewNavigateTo(typeof(StatusDetailView), status);
                    };
                    NotificationFrame.Content = notificationList;
                }
                break;

            default:
                break;
            }
        }