You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
KinectExercise_FrancoBroda/KinectSensorStreams/ViewModel/MainWindowVM.cs

51 lines
918 B

using CommunityToolkit.Mvvm.Input;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
namespace KinectSensorStreams.ViewModel
{
public class MainWindowVM
{
#region Properties
public Color EllipseColor { get; set; }
public ICommand StartCommand { get; set; }
public ICommand StopCommand { get; set; }
#endregion
#region Constructor
public MainWindowVM()
{
StartCommand = new RelayCommand(Start);
StopCommand = new RelayCommand(Stop);
}
#endregion
#region Methods
private void Start()
{
EllipseColor = Color.Green;
}
private void Stop()
{
EllipseColor = Color.Red;
}
#endregion
}
}