I have this Model:
class Person
{
public static int Counter;
public string _firstName;
public string _lastName;
public string FirstName
{
get {return _firstname; }
set
{
_fileName = value;
}
}
public AddPerson(Person person)
{
Counter++;
}
}
Now i try to binding My Counter property
into simple TextBlock
:
<TextBlock Name="tbStatusBar" Text="{Binding Person,Source={StaticResource Person.Counter}}" />
And got this error: The recourse Person.Counter could not be resolved.