ButtonCommand.cs 746 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. namespace Flyinsono.Client.Test
  3. {
  4. public enum ButtonStyle
  5. {
  6. Default,
  7. Cancel
  8. }
  9. public class ButtonCommand : Command
  10. {
  11. private ButtonStyle _style = ButtonStyle.Default;
  12. public ButtonStyle Style
  13. {
  14. get
  15. {
  16. return _style;
  17. }
  18. set
  19. {
  20. _style = value;
  21. OnPropertyChanged(() => Style);
  22. }
  23. }
  24. public ButtonCommand(Action<object> executeAction, string description = "", Func<object, bool> canExecuteFunc = null) : base(executeAction, canExecuteFunc)
  25. {
  26. Description = description;
  27. }
  28. }
  29. }