コード例 #1
0
        public CharacterViewModel(
            IPostService postService,
            IStateService stateService,
            IContentViewModelFactory contentViewModelFactory)
        {
            _postService             = postService;
            _stateService            = stateService;
            _contentViewModelFactory = contentViewModelFactory;

            CreateFeedViewModel = ViewModelLocator.Resolve <CreateFeedViewModel>();
            CreateFeedViewModel.InitializeAsync(this);
            CreateFeedViewModel.IsPossibleToHandleAttachExternalMediaArgs = true;

            EditPostPopupViewModel = ViewModelLocator.Resolve <EditPostPopupViewModel>();
            EditPostPopupViewModel.InitializeAsync(this);

            IsNestedPullToRefreshEnabled = true;
        }
コード例 #2
0
        public ProfileContentViewModel(
            IPostService postService,
            IContentViewModelFactory contentViewModelFactory,
            IStateService stateService)
        {
            _postService             = postService;
            _contentViewModelFactory = contentViewModelFactory;
            _stateService            = stateService;

            IsNestedPullToRefreshEnabled = true;

            InvitesContentViewModel = ViewModelLocator.Resolve <InvitesContentViewModel>();
            InvitesContentViewModel.InitializeAsync(this);

            CreateFeedViewModel = ViewModelLocator.Resolve <CreateFeedViewModel>();
            CreateFeedViewModel.InitializeAsync(this);

            EditPostPopupViewModel = ViewModelLocator.Resolve <EditPostPopupViewModel>();
            EditPostPopupViewModel.InitializeAsync(this);
        }