summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.MacOS/PlatformRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.MacOS/PlatformRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.MacOS/PlatformRenderer.cs50
1 files changed, 0 insertions, 50 deletions
diff --git a/Xamarin.Forms.Platform.MacOS/PlatformRenderer.cs b/Xamarin.Forms.Platform.MacOS/PlatformRenderer.cs
deleted file mode 100644
index c0fcae35..00000000
--- a/Xamarin.Forms.Platform.MacOS/PlatformRenderer.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-using AppKit;
-
-namespace Xamarin.Forms.Platform.MacOS
-{
- internal class PlatformRenderer : NSViewController
- {
- PlatformNavigation _platformNavigation;
- bool _disposed;
-
- internal PlatformRenderer(Platform platform)
- {
- Platform = platform;
- View = new NSView(NSApplication.SharedApplication.Windows[0].Frame);
- _platformNavigation = new PlatformNavigation(this);
- }
-
- public Platform Platform { get; set; }
-
- public PlatformNavigation Navigation => _platformNavigation;
-
- public override void ViewDidAppear()
- {
- Platform.DidAppear();
- base.ViewDidAppear();
- }
-
- public override void ViewDidLayout()
- {
- base.ViewDidLayout();
- Platform.LayoutSubviews();
- }
-
- public override void ViewWillAppear()
- {
- Platform.WillAppear();
- base.ViewWillAppear();
- }
-
- protected override void Dispose(bool disposing)
- {
- if (!_disposed)
- {
- _platformNavigation.Dispose();
- _platformNavigation = null;
- }
- _disposed = true;
- base.Dispose(disposing);
- }
- }
-} \ No newline at end of file