public ForInvestigationViewModel(INavigationService navigationService)
        {
            //BackColor.Value = Color.Blue;

            var toggle = false;

            GoCommand.Subscribe(async _ =>
            {
                On.Value = !On.Value;
            });

            HogeCommand = CanExecute.ToReactiveCommand();

            HogeCommand.Subscribe(_ =>
            {
                Debug.WriteLine("Cell Tap!");
            });

            Color.Value = Xamarin.Forms.Color.Blue;

            WidthToggle.Subscribe(x => {
                Width.Value = x ? 2.0d : 0.0d;
            });

            RadiusToggle.Subscribe(x => {
                Radius.Value = x ? 8.0d : 0.0d;
            });
        }
Example #2
0
        public BorderPageViewModel()
        {
            BorderColor.Value = Color.Blue;

            WidthToggle.Subscribe(x => {
                Width.Value = x ? 2.0d : 0.0d;
            });

            RadiusToggle.Subscribe(x => {
                Radius.Value = x ? 8.0d : 0.0d;
            });
        }