Se ha denunciado esta presentación.
Se está descargando tu SlideShare. ×
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio
Anuncio

Eche un vistazo a continuación

1 de 30 Anuncio

Más Contenido Relacionado

Similares a Xamarin triad (20)

Anuncio

Más reciente (20)

Xamarin triad

  1. 1. Xamarin Triad
  2. 2. @josemmortega Xamarin freelance developer
  3. 3. MVVM - Pattern created for WPF - Like MVC without posts - Easy to implement. - (Only need include a interface)
  4. 4. Demo
  5. 5. Dependency injection Service locator Inversion of control
  6. 6. Wait…
  7. 7. Do you know how use a interface?
  8. 8. public interface IJedi { IJedi Master {get;set;} double Midiclorians {get;set;} Ienumerable<IJediPowers> {get;set;} }
  9. 9. public abstract class AJedi { IJedi Master {get;set;} double Midiclorians {get;set;} IEnumerable<IJediPowers> {get;set;} }
  10. 10. public abstract class JediMaster : IJedi { IJedi Master {get;set;} double Midiclorians {get;set;} IEnumerable<IJediPowers> {get;set;} }
  11. 11. Public void RequestJedi(Ijedi Jedi) { //TODO: Send to risky mission… }
  12. 12. Disney decide every Jedi require a Gungan companion…
  13. 13. public interface Ijedi { IJedi Master {get;set;} double Midiclorians {get;set;} IEnumerable<IJediPowers> {get;set;} Int GunganCompanion {get;set;} }
  14. 14. Container I accept any interface with implementation
  15. 15. Container I accept any interface with implementation OK, I pass a to Obi Wan Kenobi it’s a IJedi
  16. 16. Container I accept any interface with implementation OK, I pass a to Obi Wan Kenobi it’s a IJedi Cool! Thanks!
  17. 17. Container May you give me a IJedi?
  18. 18. Container May you give me a IJedi? Sure, here you go!
  19. 19. Container May you give me a IJedi? Sure, here you go! Wait... What?
  20. 20. Sharing code techniques
  21. 21. Like rebels destroy death star with little, you can sharing code with little
  22. 22. - In platform, source code of platform
  23. 23. - In platform, source code of platform - Remember…
  24. 24. API Nativa PCL Platform code Create a interface Create your implementation all in PCL Create a interface in PCL Create your implementation in platform code
  25. 25. API Nativa PCL Platform code Create a interface Create your implementation all in PCL Create a interface in PCL Create your implementation in platform code TIP! It’s like Rule of Three. PCL  Direct proportional Platform code  Indirect proportional
  26. 26. Master I want to learn Xamarin - YouTube channel - https://www.youtube.com/channel/UC4f4brNfwK85zgH 5Qq4F1Fw - Twitter - @josemmortega - Xamarin documentation - https://developer.xamarin.com/
  27. 27. Thanks!

Notas del editor

  • C# is a powerful language

×