26 lines
714 B
C#
26 lines
714 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text;
|
|
using System.Windows;
|
|
using System.Windows.Media;
|
|
|
|
namespace Views.JumpRope
|
|
{
|
|
public class BeatItem : INotifyPropertyChanged
|
|
{
|
|
private Brush _color = Brushes.Black;
|
|
public double X { get; set; } // 横坐标
|
|
public Brush Color
|
|
{
|
|
get => _color;
|
|
set { _color = value; OnPropertyChanged(nameof(Color)); }
|
|
}
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
protected void OnPropertyChanged(string name) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
|
|
}
|
|
|
|
}
|