Exemplo n.º 1
0
        private void ContentPivot_Loaded(object sender, RoutedEventArgs e)
        {
            var timeline = new Controls.TinelineUserControl();

            timeline.DataContext = new TimelineTypeViewModel
            {
                TimelineType = TimelineType.Home
            };
            timeline.NavigatingToAccount += (account) =>
            {
                NavigatingToAccount?.Invoke(account);
            };
            timeline.NavigateToStatusDetail += (status) =>
            {
                ((Window.Current.Content as Frame).Content as TimeLinePage).DetailViewNavigateTo(typeof(StatusDetailView), status);
            };
            HomeFrame.Content = timeline;
        }
Exemplo n.º 2
0
        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;
            }
        }
Exemplo n.º 3
0
 private void StatusControl_FaceImageTouched(AccountModel account)
 {
     NavigatingToAccount?.Invoke(account);
 }