{"id":26235574,"url":"https://github.com/rafallopatka/ToastNotifications","last_synced_at":"2025-03-13T03:16:32.969Z","repository":{"id":38430156,"uuid":"53202692","full_name":"rafallopatka/ToastNotifications","owner":"rafallopatka","description":"Toast notifications for WPF allows you to create and display rich notifications in WPF applications.         It's highly configurable with set of built-in options like positions, behaviours, themes and many others.         It's extendable, it gives you possibility to create custom and interactive notifications in simply manner.","archived":false,"fork":false,"pushed_at":"2023-06-23T04:51:25.000Z","size":2103,"stargazers_count":730,"open_issues_count":36,"forks_count":173,"subscribers_count":33,"default_branch":"master-v2","last_synced_at":"2025-03-11T21:24:30.322Z","etag":null,"topics":["component","control","displaying-notifications","gui","interactive-notifications","mahapps","messages","notifications","nuget","popups","toast-notifications","toastnotifications","toasts","ui","ui-components","windows","windows-notifications","wpf","wpf-applications","xaml"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rafallopatka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"license","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2016-03-05T13:31:59.000Z","updated_at":"2025-03-09T09:11:38.000Z","dependencies_parsed_at":"2024-06-20T23:28:43.073Z","dependency_job_id":"cab13c6e-a23c-464e-9587-be96b9254773","html_url":"https://github.com/rafallopatka/ToastNotifications","commit_stats":null,"previous_names":["raflop/toastnotifications"],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafallopatka%2FToastNotifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafallopatka%2FToastNotifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafallopatka%2FToastNotifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafallopatka%2FToastNotifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafallopatka","download_url":"https://codeload.github.com/rafallopatka/ToastNotifications/tar.gz/refs/heads/master-v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243205245,"owners_count":20253425,"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":["component","control","displaying-notifications","gui","interactive-notifications","mahapps","messages","notifications","nuget","popups","toast-notifications","toastnotifications","toasts","ui","ui-components","windows","windows-notifications","wpf","wpf-applications","xaml"],"created_at":"2025-03-13T03:16:32.084Z","updated_at":"2025-03-13T03:16:32.917Z","avatar_url":"https://github.com/rafallopatka.png","language":"C#","readme":"```\n _______              _   _   _       _   _  __ _           _   _                         ___  \n|__   __|            | | | \\ | |     | | (_)/ _(_)         | | (_)                       |__ \\\n   | | ___   __ _ ___| |_|  \\| | ___ | |_ _| |_ _  ___ __ _| |_ _  ___  _ __  ___   __   __ ) |\n   | |/ _ \\ / _` / __| __| . ` |/ _ \\| __| |  _| |/ __/ _` | __| |/ _ \\| '_ \\/ __|  \\ \\ / // /\n   | | (_) | (_| \\__ \\ |_| |\\  | (_) | |_| | | | | (_| (_| | |_| | (_) | | | \\__ \\   \\ V // /_\n   |_|\\___/ \\__,_|___/\\__|_| \\_|\\___/ \\__|_|_| |_|\\___\\__,_|\\__|_|\\___/|_| |_|___/    \\_/|____|\n\n```\n\n# ToastNotifications v2\n#### Toast notifications for WPF\n\nToastNotifications allows you to create and display rich notifications in WPF applications.\nIt's highly configurable with set of built-in options like positions, behaviours, themes and many others.\nIt's extendable, it gives you possibility to create custom and interactive notifications in simply manner.\n\n[![Build status](https://ci.appveyor.com/api/projects/status/xk2e7g0nxfh5v92q?svg=true)](https://ci.appveyor.com/project/raflop/toastnotifications)\n[![Code Climate](https://codeclimate.com/github/raflop/ToastNotifications/badges/gpa.svg)](https://codeclimate.com/github/raflop/ToastNotifications)\n[![Issue Count](https://codeclimate.com/github/raflop/ToastNotifications/badges/issue_count.svg)](https://codeclimate.com/github/raflop/ToastNotifications)\n[![Nuget install](https://img.shields.io/badge/nuget-install-green.svg)](https://www.nuget.org/packages/ToastNotifications/)\n[![Nuget install](https://img.shields.io/badge/nuget-install-green.svg)](https://www.nuget.org/packages/ToastNotifications.Messages/)\n[![LGPL v3 license](https://img.shields.io/badge/license-LGPLV3-blue.svg)](https://github.com/raflop/ToastNotifications/blob/master-v2/license)\n\n## Demo\n\n[![demo](https://raw.githubusercontent.com/raflop/ToastNotifications/master-v2/Media/demo.gif)](https://raw.githubusercontent.com/raflop/ToastNotifications/master-v2/Media/demo.gif)\n\n## Usage\n\n[Example code](https://github.com/raflop/ToastNotifications/tree/master-v2/Src/Examples/BasicUsageExample)\n\n### 1 Install via nuget:\n[ToastNotifications](https://www.nuget.org/packages/ToastNotifications/) and [ToastNotifications.Messages](https://www.nuget.org/packages/ToastNotifications.Messages/)\n\n```\nInstall-Package ToastNotifications\nInstall-Package ToastNotifications.Messages\n```\n\nToastNotifications v2 is plugin oriented.\n\n*Nugget \"ToastNotifications\"* is a core, which contains only main mechanisms for creating and displaying notifications.\nPredefined messages and other not key functionalities are provided by separate nuggets.\n\n*Nugget ToastNotifications.Messages* contains basic messages like error, information, warning, success.\nIt's not required in case you want to create your own messages.\n\n### 2 Import ToastNotifications.Messages theme in App.xaml\n```xml\n\u003cApplication.Resources\u003e\n    \u003cResourceDictionary\u003e\n        \u003cResourceDictionary.MergedDictionaries\u003e\n            \u003cResourceDictionary Source=\"pack://application:,,,/ToastNotifications.Messages;component/Themes/Default.xaml\" /\u003e\n        \u003c/ResourceDictionary.MergedDictionaries\u003e\n    \u003c/ResourceDictionary\u003e\n\u003c/Application.Resources\u003e\n```\n\n### 3 Create Notifier instance\n```csharp\nusing ToastNotifications;\nusing ToastNotifications.Lifetime;\nusing ToastNotifications.Position;\n/* * */\nNotifier notifier = new Notifier(cfg =\u003e\n{\n    cfg.PositionProvider = new WindowPositionProvider(\n        parentWindow: Application.Current.MainWindow,\n        corner: Corner.TopRight,\n        offsetX: 10,  \n        offsetY: 10);\n\n    cfg.LifetimeSupervisor = new TimeAndCountBasedLifetimeSupervisor(\n        notificationLifetime: TimeSpan.FromSeconds(3),\n        maximumNotificationCount: MaximumNotificationCount.FromCount(5));\n\n    cfg.Dispatcher = Application.Current.Dispatcher;\n});\n```\n\n### 4 Use provided messages\n```csharp\nusing ToastNotifications.Messages;\n/* * */\nnotifier.ShowInformation(message);\nnotifier.ShowSuccess(message);\nnotifier.ShowWarning(message);\nnotifier.ShowError(message);\n```\n\n### 5 Dispose notifier when it's no longer needed\n```csharp\n/* * */\nnotifier.Dispose();\n```\n\n## Documentation\n\n* [Relesae notes](https://github.com/raflop/ToastNotifications/blob/master-v2/Docs/ReleaseNotes.md)\n  Release notes, description of new features, bug fixes and breaking changes.\n  \n* [Upgrading from v1](https://github.com/raflop/ToastNotifications/blob/master-v2/Docs/Migration.md)\n  ToastNotifications v2 is completely new implementation and it's not compatibile with version 1, follow migration instructions to upgrade to the new version.\n\n* [Configuration](https://github.com/raflop/ToastNotifications/blob/master-v2/Docs/Configuration.md)\n  ToastNotifications v2 has lots of configuration options for its position, lifetime, messages and many others, this document describe them all.\n\n* [Creating custom notifications](https://github.com/raflop/ToastNotifications/blob/master-v2/Docs/CustomNotificatios.md)\n  This document describes how to create your own notifications.\n\n* [Strongly named assemblies](https://github.com/raflop/ToastNotifications/blob/master-v2/Docs/StronglyNamedAssemblies.md)\n  ToastNotifications v2 assembies are signed. Read this doc for more details.\n\n## Contributors\n\nAndy Li (https://github.com/oneandy)\n\nB. Micka (https://github.com/b-mi)\n\nCuiLiang (https://github.com/cuiliang)\n\nBrainCrumbz (https://github.com/BrainCrumbz)\n\nFischjoghurt (https://github.com/Fischjoghurt)\n\nFrancois Botha igitur (https://github.com/igitur)\n\nJan M. (https://github.com/Pantheas)\n\nJohannes Jidel (https://github.com/jidel)\n\nKostiantyn (https://github.com/dualbios)\n\nKrzysztof Zmorzyński (https://github.com/ZmorzynskiK)\n\nRobin Krom Lakritzator (https://github.com/Lakritzator)\n\nUwy (https://github.com/Uwy)\n\nWilliam David Cossey (https://github.com/wdcossey)\n\n\n\n## Creating new issues\nBefore you create new issue, please check the documentation, because many features and options are already there.\n(https://github.com/raflop/ToastNotifications/tree/master-v2/Docs)\n\nIf there is still a problem, please create new issue/question filling following informations. \nIf it's possible, please provide a sample code to reproduce issue.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafallopatka%2FToastNotifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafallopatka%2FToastNotifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafallopatka%2FToastNotifications/lists"}