{"id":17456074,"url":"https://github.com/trympet/trayiconbindings","last_synced_at":"2025-04-19T16:35:51.616Z","repository":{"id":65492182,"uuid":"456267404","full_name":"trympet/TrayIconBindings","owner":"trympet","description":"A fast, object-oriented wrapper for the Shell_NotifyIcon API","archived":false,"fork":false,"pushed_at":"2023-11-22T22:06:29.000Z","size":134,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T12:47:05.444Z","etag":null,"topics":["csharp","system-tray","systray","tray-icon","tray-menu","win32"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trympet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-06T20:43:15.000Z","updated_at":"2024-04-04T08:50:38.000Z","dependencies_parsed_at":"2024-10-20T18:50:38.491Z","dependency_job_id":null,"html_url":"https://github.com/trympet/TrayIconBindings","commit_stats":{"total_commits":42,"total_committers":1,"mean_commits":42.0,"dds":0.0,"last_synced_commit":"68db5fd85905f3f9175ac464c9004752ba92ea07"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trympet%2FTrayIconBindings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trympet%2FTrayIconBindings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trympet%2FTrayIconBindings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trympet%2FTrayIconBindings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trympet","download_url":"https://codeload.github.com/trympet/TrayIconBindings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241494060,"owners_count":19971869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","system-tray","systray","tray-icon","tray-menu","win32"],"created_at":"2024-10-18T02:24:09.133Z","updated_at":"2025-03-02T10:35:01.070Z","avatar_url":"https://github.com/trympet.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleTrayIcon\nA fast, lightweight, object oriented wrapper for the [Shell_NotifyIcon](https://learn.microsoft.com/windows/win32/api/shellapi/nf-shellapi-shell_notifyiconw) API with no framework dependencies.\n\n[![NuGet version (SimpleTrayIcon)](https://img.shields.io/nuget/v/SimpleTrayIcon.svg?style=flat-square)](https://www.nuget.org/packages/SimpleTrayIcon/)\n\n## Usage\n\n```csharp\nvar icon = new System.Drawing.Icon(typeof(Program), \"SimpleTrayIcon.Demo.tray-icon.ico\"); // Load an icon for the tray\nusing var menu = new TrayMenu(icon, \"Tooltip\", true);\nvar item = new TrayMenuItem { Content = \"Item1\" };\nmenu.Items.Add(item);\nmenu.Items.Add(new TrayMenuSeparator());\nmenu.Items.Add(new TrayMenuItem { Content = $\"some content\", IsChecked = true });\nitem.Click += (s, e) =\u003e ((TrayMenuItem)s).IsChecked = !((TrayMenuItem)s).IsChecked; // Attach an event\nNativeMethods.RunLoop(); // Runs the message pump. Winforms, WPF, etc., will do this for you.\n```\n\n## NativeAOT Linking Options\n\nSimpleTrayIcon is fully AOT compatible.\n\nYou can build with static linking to a static library or dynamic library (with DLL).\n\nTo enable static linking to the SimpleTrayIcon DLL:\n```xml\n\u003cPropertyGroup\u003e\n    \u003cSimpleTrayIconStaticLinking\u003etrue\u003c/SimpleTrayIconStaticLinking\u003e\n\u003c/PropertyGroup\u003e\n```\n\nTo enable static linking to the SimpleTrayIcon static library:\n```xml\n\u003cPropertyGroup\u003e\n    \u003cSimpleTrayIconStaticLinking\u003etrue\u003c/SimpleTrayIconStaticLinking\u003e\n    \u003cUseSimpleTrayIconStaticLib\u003etrue\u003c/UseSimpleTrayIconStaticLib\u003e\n\u003c/PropertyGroup\u003e\n```\n\n## OneCore\nThere is a OneCore SKU of the package `SimpleTrayIcon.onecore` which links to OneCoreUAP and VCRUNTIME140_APP. It is indeed *not* OneCoreUAP compatible, but is compatible with any full-trust UWP apps. This package does not support static linking.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrympet%2Ftrayiconbindings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrympet%2Ftrayiconbindings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrympet%2Ftrayiconbindings/lists"}