相关疑难解决方法(0)

在Xamarin中传递的RelayCommand参数

我是很新的Xamarin cross-platform,虽然我也有一定的经验WPFMVVM我仍然有问题,了解参数RelayCommand使用调用ICommand下面执行.有人可以解释如何正确地传递和接收CommandParameter我的视图到我的界限,RelayCommand因为这似乎安静不同于正常WPF版本RelayCommand:

    /// <summary>
    /// A command whose sole purpose is to relay its functionality 
    /// to other objects by invoking delegates. 
    /// The default return value for the CanExecute method is 'true'.
    /// <see cref="RaiseCanExecuteChanged"/> needs to be called whenever
    /// <see cref="CanExecute"/> is expected to return a different value.
    /// </summary>
    public class RelayCommand : ICommand
    {
        private readonly Action …
Run Code Online (Sandbox Code Playgroud)

c# wpf mvvm xamarin

3
推荐指数
1
解决办法
4515
查看次数

标签 统计

c# ×1

mvvm ×1

wpf ×1

xamarin ×1