Data binding Data passing between screens Data application One way – Send data Global (Should avoid) Source screen Public static variable (Should avoid) Destination screen Constructor parameter Global[.]
Data passing between screens Data application One way – Send data Global (Should avoid) Source screen: Public static variable (Should avoid) Destination screen: Constructor parameter Global Use Global class to store & retrieve data Easy, fast Not recommended! (Why?) Global example Public static The source screen has public static variable Constructor parameter TwoWay – Get back data Public static (again?) Public property Delegate & event Public property Delegate Another demo Demo In short 10 Lambda expression Siêu ngắn 11