Exemple #1
0
        public ConferenceFeedbackPage()
        {
            InitializeComponent();

            BindingContext = vm = new ConferenceFeedbackViewModel(Navigation);

            if (Device.OS != TargetPlatform.iOS)
            {
                ToolbarDone.Icon = "toolbar_close.png";
            }

            ToolbarDone.Command = new Command(async() =>
            {
                if (vm.IsBusy)
                {
                    return;
                }

                await Navigation.PopModalAsync();
            });
        }
        public ConferenceFeedbackPage()
        {
            this.InitializeComponent();

            this.BindingContext = this.vm = new ConferenceFeedbackViewModel(this.Navigation);

            if (Device.RuntimePlatform != Device.iOS)
            {
                this.ToolbarDone.Icon = "toolbar_close.png";
            }

            this.ToolbarDone.Command = new Command(async() =>
            {
                if (this.vm.IsBusy)
                {
                    return;
                }

                await this.Navigation.PopModalAsync();
            });
        }