@radimitrov If I use mvvm toolkit attributes,like ObservableObjectAttribute I get the following exceptions: Argument 1: cannot convert from 'System.ComponentModel.PropertyChangingEventArgs' to 'string' and Argument 1: cannot convert from 'System.ComponentModel.PropertyChangedEventArgs' to 'string' for every ObservablePropertyAttribute. My code(Card is just an abstract class but that's not important I believe):
[ObservableObject]
public partial class Creature : Card
{
readonly int maxStrength;
[ObservableProperty]
int strength;
readonly int maxDefense;
[ObservableProperty]
int defense;
}
This is the Card class(Land class only has a private constructor):
public abstract class Card : GraphicsView, IDrawable
{
readonly List\<Land> costs = new List();
readonly string imagePath;
@radimitrov If I use mvvm toolkit attributes,like ObservableObjectAttribute I get the following exceptions: Argument 1: cannot convert from 'System.ComponentModel.PropertyChangingEventArgs' to 'string' and Argument 1: cannot convert from 'System.ComponentModel.PropertyChangedEventArgs' to 'string' for every ObservablePropertyAttribute. My code(Card is just an abstract class but that's not important I believe):
[ObservableObject] public partial class Creature : Card { readonly int maxStrength;
}
This is the Card class(Land class only has a private constructor):
public abstract class Card : GraphicsView, IDrawable { readonly List\<Land> costs = new List();
readonly string imagePath;
}
Please fix it!