AppDelegate.cs 779 B

12345678910111213141516171819202122232425
  1. using Foundation;
  2. using UIKit;
  3. using Avalonia;
  4. using Avalonia.Controls;
  5. using Avalonia.iOS;
  6. using Avalonia.Media;
  7. namespace ControlCatalog
  8. {
  9. // The UIApplicationDelegate for the application. This class is responsible for launching the
  10. // User Interface of the application, as well as listening (and optionally responding) to
  11. // application events from iOS.
  12. [Register("AppDelegate")]
  13. public partial class AppDelegate : AvaloniaAppDelegate<App>
  14. {
  15. protected override AppBuilder CustomizeAppBuilder(AppBuilder builder)
  16. {
  17. return base.CustomizeAppBuilder(builder)
  18. .AfterSetup(_ =>
  19. {
  20. Pages.EmbedSample.Implementation = new EmbedSampleIOS();
  21. });
  22. }
  23. }
  24. }