diff options
Diffstat (limited to 'Xamarin.Forms.Platform.MacOS/Extensions/NSButtonExtensions.cs')
-rw-r--r-- | Xamarin.Forms.Platform.MacOS/Extensions/NSButtonExtensions.cs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/Xamarin.Forms.Platform.MacOS/Extensions/NSButtonExtensions.cs b/Xamarin.Forms.Platform.MacOS/Extensions/NSButtonExtensions.cs deleted file mode 100644 index d37f1a3d..00000000 --- a/Xamarin.Forms.Platform.MacOS/Extensions/NSButtonExtensions.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using AppKit; - -namespace Xamarin.Forms.Platform.MacOS -{ - public static class NSButtonExtensions - { - public static NSButton CreateButton(string text, Action activate = null) - { - return CreateButton(text, null, activate); - } - - public static NSButton CreateButton(string text, NSImage image = null, Action activate = null) - { - var btn = new NSButton { Title = text }; - btn.BezelStyle = NSBezelStyle.TexturedRounded; - - if (image != null) - btn.Image = image; - if (activate != null) - btn.Activated += (sender, e) => activate(); - return btn; - } - } -}
\ No newline at end of file |