{"id":30516056,"url":"https://github.com/gigas002/materialmessagebox","last_synced_at":"2026-02-26T18:11:13.830Z","repository":{"id":35103492,"uuid":"206994812","full_name":"Gigas002/MaterialMessageBox","owner":"Gigas002","description":"Library on .NET Core 3.1 implementing material design message box in WPF.","archived":false,"fork":false,"pushed_at":"2023-03-02T22:58:28.000Z","size":943,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-19T14:36:13.271Z","etag":null,"topics":["desktop","material-design","material-ui","messagebox","wpf"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gigas002.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-07T16:24:45.000Z","updated_at":"2023-05-08T05:41:39.000Z","dependencies_parsed_at":"2023-02-10T06:25:11.869Z","dependency_job_id":null,"html_url":"https://github.com/Gigas002/MaterialMessageBox","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Gigas002/MaterialMessageBox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gigas002%2FMaterialMessageBox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gigas002%2FMaterialMessageBox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gigas002%2FMaterialMessageBox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gigas002%2FMaterialMessageBox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gigas002","download_url":"https://codeload.github.com/Gigas002/MaterialMessageBox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gigas002%2FMaterialMessageBox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272202271,"owners_count":24891180,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["desktop","material-design","material-ui","messagebox","wpf"],"created_at":"2025-08-26T09:21:00.040Z","updated_at":"2026-02-26T18:11:13.794Z","avatar_url":"https://github.com/Gigas002.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MaterialMessageBox\n\nLibrary on **.NET Core 3.1** implementing material design message box in WPF.\n\nOriginal idea and some code is written by [denpalrius](https://github.com/denpalrius/Material-Message-Box), but I’ve changed some major stuff and decided to make it different repository. Text for message boxes in Demo is taken from [here](https://en.wikipedia.org/wiki/Soviet_Union). Icon is taken from [here](https://material.io/resources/icons/?search=message\u0026icon=message\u0026style=baseline).\n\nYou can build project in **VS2019** (**16.4.1**+) or in **VSCode** (**1.40.2**+) with [omnisharp-vscode](https://github.com/OmniSharp/omnisharp-vscode) extension (**1.21.8**+).\n\n![Icon](icon.png)\n\n[![Build status](https://ci.appveyor.com/api/projects/status/iaiarsuu9xlwiu1a/branch/master?svg=true)](https://ci.appveyor.com/project/Gigas002/materialmessagebox) [![Actions Status](https://github.com/Gigas002/MaterialMessageBox/workflows/.NET%20Core/badge.svg)](https://github.com/Gigas002/MaterialMessageBox/actions) \n\n## Current version\n\nGet latest version on releases page: [![Release](https://img.shields.io/github/release/Gigas002/MaterialMessageBox.svg)](https://github.com/Gigas002/MaterialMessageBox/releases/latest), or on NuGet:\n\nWindows x86: [![NuGet](https://img.shields.io/nuget/v/MaterialMessageBox-x86.svg)](https://www.nuget.org/packages/MaterialMessageBox-x86/)\n\nWindows x64: [![NuGet](https://img.shields.io/nuget/v/MaterialMessageBox-x64.svg)](https://www.nuget.org/packages/MaterialMessageBox-x64/)\n\nInformation about changes since previous releases can be found in [changelog](https://github.com/Gigas002/MaterialMessageBox/blob/master/CHANGELOG.md). This project supports [SemVer 2.0.0](https://semver.org/) (template is `{MAJOR}.{MINOR}.{PATCH}.{BUILD}`).\n\nPrevious versions can be found on [releases](https://github.com/Gigas002/MaterialMessageBox/releases) and [branches](https://github.com/Gigas002/MaterialMessageBox/branches) pages.\n\n## Requirements\n\n- Windows 7 or newer;\n- .NET Core 3.1;\n\n## Dependencies\n\n- [MaterialDesignThemes](https://www.nuget.org/packages/MaterialDesignThemes) – 3.0.1;\n- [MaterialDesignColors](https://www.nuget.org/packages/MaterialDesignColors) – 1.2.2;\n\n## API\n\nLibrary implements two different kinds of message boxes: **Window** and **UserControl**. See screenshots below to see the difference in design.\n\nTo use API, add `using MaterialMessageBox` directive to your classes.\n\n### MaterialMessageBoxWindow\n\nContains three slightly different static `Show(...)` methods:\n\n```c#\npublic static MessageBoxResult Show(string message, bool isCancelButtonVisible = false, bool isRightToLeft = false) {...}\n\npublic static MessageBoxResult ShowError(string message, bool isCancelButtonVisible = false, bool isRightToLeft = false) {...}\n\npublic static MessageBoxResult ShowWarning(string message, bool isCancelButtonVisible = false, bool isRightToLeft = false) {...}\n```\n\nWhich you can call in your code like this:\n\n```c#\nMaterialMessageBoxWindow.Show(MessageBoxMessage);\nMaterialMessageBoxWindow.ShowError(MessageBoxMessage, true, true);\nMaterialMessageBoxWindow.ShowWarning(MessageBoxMessage, true);\n```\n\nBut also you can create `MaterialMessageBoxWindow` object and rewrite some stuff for yourself:\n\n```c#\nMaterialMessageBoxWindow materialMessageBoxWindow = new MaterialMessageBoxWindow\n{\n    MessageTextBlock = { Text = MessageBoxMessage, Foreground = Brushes.Yellow },\n    CopyToClipboardButton = { Visibility = Visibility.Hidden },\n    OkButton = { Content = \"Good\", Foreground = Brushes.Yellow, Background = Brushes.LightCoral},\n    CancelButton = { Content = \"Bad\", Foreground = Brushes.Blue, Background = Brushes.LightBlue},\n    BordersGrid = { Background = Brushes.IndianRed },\n    MainGrid = { Background = Brushes.Red }, BorderBrush = Brushes.DarkRed,\n    BorderThickness = new Thickness(4, 4, 4, 4)\n};\nmaterialMessageBoxWindow.ShowDialog();\n```\n\n### MaterialMessageBoxUserControl\n\nTo use this, you must specify `DialogHost` in your `.xaml` file.\n\nCode is mostly the same, as in `MaterialMessageBoxWindow`, but there’s also implemented both `Async` and non-`Async` methods:\n\n```c#\npublic static async ValueTask\u003cMessageBoxResult\u003e ShowAsync(string message, bool isCancelButtonVisible = false, bool isRightToLeft = false) {...}\n\npublic static async ValueTask\u003cMessageBoxResult\u003e ShowErrorAsync(string message, bool isCancelButtonVisible = false, bool isRightToLeft = false) {...}\n\npublic static async ValueTask\u003cMessageBoxResult\u003e ShowWarningAsync(string message, bool isCancelButtonVisible = false, bool isRightToLeft = false) {...}\n\npublic static MessageBoxResult Show(string message, bool isCancelButtonVisible = false, bool isRightToLeft = false) {...}\n\npublic static MessageBoxResult ShowError(string message, bool isCancelButtonVisible = false, bool isRightToLeft = false) {...}\n\npublic static MessageBoxResult ShowWarning(string message, bool isCancelButtonVisible = false, bool isRightToLeft = false) {...}\n```\n\nWays to call it are pretty much the same (don’t forget to make your methods `async` and use `ConfigureAwait`):\n\n```c#\nawait MaterialMessageBoxUserControl.ShowAsync(MessageBoxMessage);\nawait MaterialMessageBoxUserControl.ShowErrorAsync(MessageBoxMessage, true, true);\nawait MaterialMessageBoxUserControl.ShowWarningAsync(MessageBoxMessage, true)\n```\n\nAnd of course you can also create `MaterialMessageBoxUserControl` object, but note, that **there’s a bit different way to call `Show()` method**:\n\n```c#\nMaterialMessageBoxUserControl materialMessageBoxUserControl = new MaterialMessageBoxUserControl\n{\n    MessageTextBlock = { Text = MessageBoxMessage, Foreground = Brushes.Yellow },\n    CopyToClipboardButton = { Visibility = Visibility.Hidden },\n    OkButton = { Content = \"Good\", Foreground = Brushes.Yellow, Background = Brushes.LightCoral },\n    CancelButton = { Content = \"Bad\", Foreground = Brushes.Blue, Background = Brushes.LightBlue },\n    BordersGrid = { Background = Brushes.IndianRed },\n    MainGrid = { Background = Brushes.Red },\n    BorderBrush = Brushes.DarkRed,\n    BorderThickness = new Thickness(4, 4, 4, 4)\n};\nawait DialogHost.Show(materialMessageBoxUserControl);\n```\n\n## Screenshots\n\nUsual Window\n\n![UsualWindow](Screenshots/UsualWindow.png)\n\nUsual UserControl\n\n![UsualUserControl](Screenshots/UsualUserControl.png)\n\nCustom Window\n\n![CustomWindow](Screenshots/CustomWindow.png)\n\nCustom UserControl\n\n![CustomUserControl](Screenshots/CustomUserControl.png)\n\nError Window\n\n![ErrorWindow](Screenshots/ErrorWindow.png)\n\nError UserControl\n\n![ErrorUserControl](Screenshots/ErrorUserControl.png)\n\nWarning Window\n\n![WarningWindow](Screenshots/WarningWindow.png)\n\nWarning UserControl\n\n![WarningUserControl](Screenshots/WarningUserControl.png)\n\n## Contributing\n\nFeel free to contribute, make forks, change some code, add [issues](https://github.com/Gigas002/MaterialMessageBox/issues), etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgigas002%2Fmaterialmessagebox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgigas002%2Fmaterialmessagebox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgigas002%2Fmaterialmessagebox/lists"}