Example #1
0
        internal PlatformRenderer(Platform platform)
        {
            Platform = platform;
#pragma warning disable CS0618 // Type or member is obsolete
            View = new NSView(NSApplication.SharedApplication.Windows[0].Frame);
#pragma warning restore CS0618 // Type or member is obsolete
            _platformNavigation = new PlatformNavigation(this);
        }
Example #2
0
 protected override void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         _platformNavigation.Dispose();
         _platformNavigation = null;
     }
     _disposed = true;
     base.Dispose(disposing);
 }
Example #3
0
 internal PlatformRenderer(Platform platform)
 {
     Platform            = platform;
     View                = new NSView(NSApplication.SharedApplication.Windows[0].Frame);
     _platformNavigation = new PlatformNavigation(this);
 }