public override void DidFinishLaunching(NSNotification notification) { Forms.Init(); Core.Forms.App app = new Core.Forms.App(Core.Forms.Data.PlatformType.MacOS); LoadApplication(app); MenuStatusBar menuStatusBar = new MenuStatusBar(app); menuStatusBar.Create(app.TabbedPageContent); base.DidFinishLaunching(notification); }
public MainWindow() { InitializeComponent(); Xamarin.Forms.Forms.Init(); Core.Forms.App app = new Core.Forms.App(ClockApp.Core.Forms.Data.PlatformType.WPF); LoadApplication(app); //Frame rootFrame = this.Content as Frame; //rootFrame. //Frame frame = new Frame(); //this.Content = frame; //this.Icon = "./Resources/Icons/clockIcon.png"; this.WindowStyle = WindowStyle.SingleBorderWindow; MenuNotifyIcon notifyIcon = new MenuNotifyIcon(app); notifyIcon.Create(app.TabbedPageContent); }
public MenuNotifyIcon(Core.Forms.App app) { this.app = app; }
public MenuStatusBar(Core.Forms.App app) { statusBar = NSStatusBar.SystemStatusBar; this.app = app; }