Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ICommand ChangePositionCommand => new Command((obj) =>
- {
- _positionIndex++;
- if (_positionIndex >= Positions.Count)
- _positionIndex = 0;
- Position = Positions[_positionIndex];
- RaisePropertyChanged(nameof(Position));
- });
- public ICommand ChangePositionCommand {
- return new Command((obj) => {
- _positionIndex++;
- if (_positionIndex >= Positions.Count)
- _positionIndex = 0;
- Position = Positions[_positionIndex];
- RaisePropertyChanged(nameof(Position));
- });
- }
- public int X { get {return A + B;}}
- public int X => A + B;
Add Comment
Please, Sign In to add comment