「Xamarin.Macでシステムステータスバーにアイコンを表示する」の版間の差分

imported>Mono Book
ページの作成:「Mac OS Xのシステムステータスバー(Windowsでいうタスクトレイ)にアイコンを表示したい。 ファイル:システムステータ...」
 
imported>Mono Book
編集の要約なし
23行目: 23行目:
             statusItem.Image = new NSImage(Path.Combine(NSBundle.MainBundle.BundlePath, "Contents", "Resources", "CDx18.png"));
             statusItem.Image = new NSImage(Path.Combine(NSBundle.MainBundle.BundlePath, "Contents", "Resources", "CDx18.png"));


             // アイコンをダブルクリックされたらこのアプリを終了する
             // アイコンがダブルクリックされたらこのアプリを終了する
             statusItem.DoubleClick += (object sender, EventArgs e) => {
             statusItem.DoubleClick += (object sender, EventArgs e) => {
                 NSApplication.SharedApplication.Terminate(this);
                 NSApplication.SharedApplication.Terminate(this);
76行目: 76行目:
{{stub}}
{{stub}}


[[category:MonoMac]]
[[category:Xamarin.Mac]]
[[category:Xamarin.Mac]]