All Projects → AnaghSharma → Ambar-Xamarin

AnaghSharma / Ambar-Xamarin

Licence: MIT license
A macOS Menu Bar app built with Xamarin and C#

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to Ambar-Xamarin

Carol Xamarin
A minimal and beautiful lyrics app for macOS built with Xamarin and C#
Stars: ✭ 97 (+53.97%)
Mutual labels:  xamarin, popover, macosx, macos-app
Popover
Popover component for Angular
Stars: ✭ 187 (+196.83%)
Mutual labels:  popover, popup
Material Ui Popup State
boilerplate for common Material-UI Menu, Popover and Popper use cases
Stars: ✭ 186 (+195.24%)
Mutual labels:  popover, popup
Ampoptip
An animated popover that pops out a given frame, great for subtle UI tips and onboarding.
Stars: ✭ 2,854 (+4430.16%)
Mutual labels:  popover, popup
Tippyjs
Tooltip, popover, dropdown, and menu library
Stars: ✭ 9,433 (+14873.02%)
Mutual labels:  popover, popup
Jxpopupview
一个轻量级的自定义视图弹出框架
Stars: ✭ 117 (+85.71%)
Mutual labels:  popover, popup
Spstorkcontroller
Now playing controller from Apple Music, Mail & Podcasts Apple's apps.
Stars: ✭ 2,494 (+3858.73%)
Mutual labels:  popover, popup
Ghostskb
Smart input method switcher like a ghost
Stars: ✭ 186 (+195.24%)
Mutual labels:  macosx, macos-app
Rg.plugins.popup
Xamarin Forms popup plugin
Stars: ✭ 964 (+1430.16%)
Mutual labels:  xamarin, popup
Xam.plugin.simplebottomdrawer
Just a nice and simple BottomDrawer for your Xamarin Forms project
Stars: ✭ 92 (+46.03%)
Mutual labels:  xamarin, popup
Popover
Custom macOS Popover 💬
Stars: ✭ 71 (+12.7%)
Mutual labels:  popover, macos-app
MinaOTP-MAC
Two-factor authentication tray app in macOS
Stars: ✭ 51 (-19.05%)
Mutual labels:  macosx, macos-app
SPStorkController
Now playing controller from Apple Music, Mail & Podcasts Apple's apps.
Stars: ✭ 2,515 (+3892.06%)
Mutual labels:  popover, popup
React Layer Stack
Layering system for React. Useful for popover/modals/tooltip/dnd application
Stars: ✭ 152 (+141.27%)
Mutual labels:  popover, popup
Mac Os X App Menu Bar Popup
Mac OS X Application like a menu bar popup message
Stars: ✭ 168 (+166.67%)
Mutual labels:  popup, macosx
React Popup
React popup component
Stars: ✭ 198 (+214.29%)
Mutual labels:  popover, popup
osxapp vers
Get product name, exact product version and build version from an Apple Install [Mac OS X|OS X|macOS]*.app or from a mounted Mac OS X Install CD/DVD image
Stars: ✭ 12 (-80.95%)
Mutual labels:  macosx, macos-app
Amac
This is developed for Awesome-Mac.
Stars: ✭ 120 (+90.48%)
Mutual labels:  macosx, macos-app
WeakEventListener
The WeakEventListener allows the owner to be garbage collected if its only remaining link is an event handler.
Stars: ✭ 25 (-60.32%)
Mutual labels:  xamarin, xamarin-mac
react-layer-stack
Layering system for React. Useful for popover/modals/tooltip/dnd application
Stars: ✭ 158 (+150.79%)
Mutual labels:  popover, popup

Ambar-Xamarin

Ambar is a macOS Menu Bar app developed with Xamarin and C#. This project aims to show developing a menu bar app for macOS in C#.

Update

Using Ambar as the base, I was able to build Carol - a minimal and beautiful lyrics app for macOS. Check it out.

Why

It is for the folks wanting to start developing for macOS/iOS/tvOS/watchOS but do not want to delve into Swift/Obj-C and are already comfortable with C# and .Net technologies.

Tools Required

  1. Visual Studio for Mac
  2. Xcode

Steps

Here is how you can do it -

  1. In Xcode, delete Window Controller Scene from Main.storyboard and provide Storyboard ID to View Controller.
  2. Add new entry in info.plist - Application is agent (UIElement) with its value set to Yes to make the app behave as a ghost.
  3. Create a Menu Bar status item using CreateStatusItem() method of NSStatusBar.
  4. Handle status bar icon for dark and light theme using Template property of NSImage.
  5. Handle event handling of status item using Selector class of ObjCRuntime.
  6. Show a popover using NSPopover and its Show() method.
  7. Make popover show on demand and hide when user moves on using NSEvent and a custom class.
  8. In Xcode, add a button to View Controller and create an action QuitApplication by control + drag. In VS, call Terminate method of NSApplication.

Unless stated otherwise, everything is done in Visual Studio for Mac.

To-do

  • Add a Contextual Menu to show options.
  • Add a Launch at Login setting.
  • Add a About window.

Contribute

If you think this project can be improved to show more of what can be done using Xamarin and C#, you are welcome to contribute. If you build something epic using it, just let me know.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].