1234567891011121314151617181920212223242526272829303132 |
- using System;
- namespace Flyinsono.Client.Test
- {
- public enum ButtonStyle
- {
- Default,
- Cancel
- }
- public class ButtonCommand : Command
- {
- private ButtonStyle _style = ButtonStyle.Default;
- public ButtonStyle Style
- {
- get
- {
- return _style;
- }
- set
- {
- _style = value;
- OnPropertyChanged(() => Style);
- }
- }
- public ButtonCommand(Action<object> executeAction, string description = "", Func<object, bool> canExecuteFunc = null) : base(executeAction, canExecuteFunc)
- {
- Description = description;
- }
- }
- }
|