There\'s no problem if Mode=OneWay, but I have this: Class:
namespace Halt
{
public class ProjectData
{
public static string Username {ge
When I have to bind to a static property I use a ViewModel that has a property that gets and sets on the static property, for example
public class ProjectData
{
public static string Username {get;set;}
}
public class ViewModel {
public string UserName {
get{ return ProjectData.Username ; }
set { ProjectData.Username = value; }
}
}
Then I set an instance of ViewModel as the UI DataContext.