Exemple #1
0
 public MyPageViewModel()
 {
     this.SuggestTopicViewModel = new RefreshableViewModel <Topic>(this.LoadSuggestTopics, 30);
     this.LikeTopicViewModel    = new RefreshableViewModel <Topic>(this.LoadLikeTopics, 30);
     this.PostTopicViewModel    = new RefreshableViewModel <Topic>(this.LoadPostTopics, 30);
     this.ReplyTopicViewModel   = new RefreshableViewModel <Topic>(this.LoadReplyTopics, 30);
 }
        public UserDetailPageViewModel()
        {
            this.TopGroupList = new ObservableCollection <Group>();
            this.TopPhotoList = new ObservableCollection <Photo>();

            this.JoinedGroupViewModel    = new RefreshableViewModel <Group>(this.LoadJoinedGroups, 100);
            this.RecommandTopicViewModel = new RefreshableViewModel <Topic>(this.LoadRecommandTopics, 30);
            this.LikeTopicViewModel      = new RefreshableViewModel <Topic>(this.LoadLikeTopics, 30);
            this.AlbumViewModel          = new RefreshableViewModel <Album>(this.LoadAlbums, 30);
        }
Exemple #3
0
        public override async void OnNavigatedTo(NavigatedToEventArgs e)
        {
            base.OnNavigatedTo(e);

            this.GroupID = (long)e.Parameter;

            if (e.NavigationMode == NavigationMode.New)
            {
                this.LoadGroup();
                this.GroupTopicsViewModel = new RefreshableViewModel <Topic>(this.LoadTopics, 30);
                this.GroupUsersViewModel  = new RefreshableViewModel <User>(this.LoadUsers, 100);
            }
        }