NestedCommandViewModel.cs 431 B

1234567891011121314151617181920
  1. using ReactiveUI;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows.Input;
  8. namespace BindingDemo.ViewModels
  9. {
  10. public class NestedCommandViewModel : ReactiveObject
  11. {
  12. public NestedCommandViewModel()
  13. {
  14. Command = ReactiveCommand.Create(() => { });
  15. }
  16. public ICommand Command { get; }
  17. }
  18. }