TestItem.cs 528 B

12345678910111213141516171819202122
  1. using ReactiveUI;
  2. namespace BindingDemo.ViewModels
  3. {
  4. public class TestItem : ReactiveObject
  5. {
  6. private string _stringValue = "String Value";
  7. private string _detail;
  8. public string StringValue
  9. {
  10. get { return _stringValue; }
  11. set { this.RaiseAndSetIfChanged(ref this._stringValue, value); }
  12. }
  13. public string Detail
  14. {
  15. get { return _detail; }
  16. set { this.RaiseAndSetIfChanged(ref this._detail, value); }
  17. }
  18. }
  19. }