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.
37 lines
865 B
37 lines
865 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ex_DataTemplateSelector
|
|
{
|
|
class Forme : INotifyPropertyChanged
|
|
{
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
|
protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
|
|
{
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
}
|
|
|
|
|
|
public virtual double X
|
|
{
|
|
get { return x; }
|
|
set { x = value; OnPropertyChanged(); }
|
|
}
|
|
private double x;
|
|
|
|
public virtual double Y
|
|
{
|
|
get { return y; }
|
|
set { y = value; OnPropertyChanged(); }
|
|
}
|
|
private double y;
|
|
|
|
}
|
|
}
|