Пример #1
0
        public MainPageViewModel(INavigationService navigationService)
            : base(navigationService)
        {
            Title = "Main Page";

            APIKey.Subscribe((param) =>
            {
                Preferences.Set(nameof(APIKey), param);
            }).AddTo(this.Disposable);

            ExecutePageCommand.Subscribe(async() =>
            {
                var navigationParameters = new NavigationParameters()
                {
                    //{ "キー", 値 },
                    { "APIKey", APIKey.Value },
                };
                await this.NavigationService.NavigateAsync("ExecutePage", navigationParameters);
            }).AddTo(this.Disposable);
        }