Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <Label Text="{Binding DeviceGuid}"/>
  2.  
  3. BindingContext = new BluetoothViewModel();
  4.  
  5. private string _deviceGuid;
  6. public string DeviceGuid
  7. {
  8. get
  9. {
  10. return _deviceGuid;
  11. }
  12. set
  13. {
  14. Console.WriteLine("Guid: "+_deviceGuid);
  15. if (_deviceGuid != value)
  16. {
  17. Console.WriteLine("geändert Guid: " + value);
  18. _deviceGuid = value;
  19. OnPropertyChanged();
  20. }
  21. }
  22. }
  23.  
  24. ViewModel a = new ViewModel();
  25. a.DeviceGuid = "test";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement