mirror of https://github.com/AMT-Cheif/Stylet.git
26 lines
555 B
C#
26 lines
555 B
C#
using Stylet;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace StyletIntegrationTests.WindowDisplayNameBound
|
|
{
|
|
public class WindowViewModel : Screen
|
|
{
|
|
private int count = 0;
|
|
|
|
public WindowViewModel()
|
|
{
|
|
this.DisplayName = String.Format("Count: {0}", this.count);
|
|
}
|
|
|
|
public void AddCount()
|
|
{
|
|
this.count++;
|
|
this.DisplayName = String.Format("Count: {0}", this.count);
|
|
}
|
|
}
|
|
}
|