Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public MenuNotifyIcon(Core.Forms.App app)
 {
     this.app = app;
 }
Beispiel #4
0
 public MenuStatusBar(Core.Forms.App app)
 {
     statusBar = NSStatusBar.SystemStatusBar;
     this.app  = app;
 }