Page1ViewModel.cs 470 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using AvaloniaApplicationPages.Models;
  4. using ReactiveUI;
  5. namespace AvaloniaApplicationPages.ViewModels
  6. {
  7. public class Page1ViewModel : ReactiveObject
  8. {
  9. public string Message
  10. {
  11. get => Class1.message;
  12. set => this.RaiseAndSetIfChanged(ref Class1.message, value);
  13. }
  14. public void showMessage()
  15. {
  16. Message = "Äî ñâèäàíèÿ";
  17. }
  18. }
  19. }