Advertisement
Guest User

Untitled

a guest
May 29th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. Model:
  2. public Class ActionDuengen {
  3.     public ActionDuengen() {}
  4. ...
  5.     public string Name {get; set; }
  6. [OneToOne]
  7. public ActionBuchung Buchung {get; set;}
  8. }
  9. public Class ActionBuchung {
  10.     public ActionBuchung() {}
  11. ...
  12.     public string Datum {get; set; }
  13. }
  14. View:
  15. ...
  16. DuengenAction = new ActionDuengen();
  17. BuchungsAction = new ActionBuchung();
  18. DuengenAction.Buchung = Buchungsaction;
  19. this.BindingContext = DuengenAction;
  20. ...
  21.  
  22. var datumLabel = new Label { Text = "Datum"};
  23. Entry datumEntry = new Entry();
  24. datumEntry.SetBinding(Entry.Textproperty, "Buchung.Datum");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement