コード例 #1
0
        /// <inheritdoc cref="IReactiveCommand.ObserveProperty"/>
        public static IReactiveCommand <TObserved> ObserveProperty <TObserved>(this IReactiveCommand <TObserved> command, Expression <Func <TObserved, object> > property)
        {
            var propertyName = ExpressionHelper.GetMemberName(property);
            var type         = ExpressionHelper.GetMemberType(property);

            command.ObserveProperty(propertyName, Validators.GetValidator(type));
            return(command);
        }
コード例 #2
0
 /// <inheritdoc cref="IReactiveCommand.ObserveProperty"/>
 public static IReactiveCommand ObserveProperty <TObserved>(this IReactiveCommand <TObserved> command, Expression <Func <TObserved, object> > propertyName, Validator validator)
 {
     return(command.ObserveProperty(ExpressionHelper.GetMemberName(propertyName), validator));
 }