{"id":16246358,"url":"https://github.com/otiel/wpfmessagebox","last_synced_at":"2025-08-01T16:11:42.998Z","repository":{"id":69313621,"uuid":"191123463","full_name":"Otiel/WpfMessageBox","owner":"Otiel","description":"A WPF message box, with optional features like custom buttons, textbox and checkbox.","archived":false,"fork":false,"pushed_at":"2019-06-14T16:38:37.000Z","size":77,"stargazers_count":8,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-29T14:00:06.968Z","etag":null,"topics":["c-sharp","message-box","windows","wpf"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Otiel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2019-06-10T07:59:34.000Z","updated_at":"2024-11-19T21:19:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"bbf80243-9936-4a5b-b11a-8ca320f9b50d","html_url":"https://github.com/Otiel/WpfMessageBox","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Otiel/WpfMessageBox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Otiel%2FWpfMessageBox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Otiel%2FWpfMessageBox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Otiel%2FWpfMessageBox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Otiel%2FWpfMessageBox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Otiel","download_url":"https://codeload.github.com/Otiel/WpfMessageBox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Otiel%2FWpfMessageBox/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268257460,"owners_count":24221059,"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-01T02:00:08.611Z","response_time":67,"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":["c-sharp","message-box","windows","wpf"],"created_at":"2024-10-10T14:30:34.535Z","updated_at":"2025-08-01T16:11:42.970Z","avatar_url":"https://github.com/Otiel.png","language":"C#","readme":"\u003ch1 align=\"center\"\u003e\u003cimg alt=\"Icon\" src=\"docs/images/Icon.32x32.png\"\u003e WpfMessageBox\u003c/h1\u003e\n\n[![Nuget](https://img.shields.io/nuget/v/wpfmessagebox.svg?logo=nuget)](https://www.nuget.org/packages/WpfMessageBox) [![build:master status](https://img.shields.io/appveyor/ci/Otiel/wpfmessagebox/master.svg?label=build:master\u0026logo=appveyor)](https://ci.appveyor.com/project/Otiel/wpfmessagebox/branch/master) [![build:develop status](https://img.shields.io/appveyor/ci/Otiel/wpfmessagebox/develop.svg?label=build:develop\u0026logo=appveyor)](https://ci.appveyor.com/project/Otiel/wpfmessagebox/branch/develop)\n\n## Description\n\nWpfMessageBox is a WPF message box implementation, aimed to be visually balanced between the default WPF style and the native .NET MessageBox. It offers the following features:\n\n* Returns the standard .NET [MessageBoxResult](https://docs.microsoft.com/en-us/dotnet/api/system.windows.messageboxresult)s.\n* Uses the standard MessageBox [icons](https://docs.microsoft.com/en-us/windows/desktop/uxguide/vis-std-icons).\n* Ability to define custom buttons text.\n* Optional header text.\n* Optional TextBox.\n* Optional CheckBox.\n\n![Screenshot 1](docs/images/Screenshot-custom-buttons.png)\n![Screenshot 2](docs/images/Screenshot-full.png)\n\n## Usage\n\n1. Install through [Nuget](https://www.nuget.org/packages/WpfMessageBox)\n2. WpfMessageBox uses static method like the standard .NET MessageBox:\n\n    ```\n    using WpfMessageBoxLibrary;\n\n    MessageBoxResult result = WpfMessageBox.Show(\"Some text\", \"Some title\", MessageBoxButton.OK, MessageBoxImage.Exclamation);\n    ```\n3. In order to use the extra features offered by WpfMessageBox, you need to initialize a new `WpfMessageBoxProperties` which will hold the desired properties, then use the relevant static method:\n\n    ```\n    using WpfMessageBoxLibrary;\n\n    var msgProperties = new WpfMessageBoxProperties() {\n        Button = MessageBoxButton.OKCancel,\n        ButtonOkText = \"Set name\",\n        CheckBoxText = \"Don't ask again\",\n        Image = MessageBoxImage.Exclamation,\n        Header = \"No name defined\",\n        IsCheckBoxChecked = true,\n        IsCheckBoxVisible = true,\n        IsTextBoxVisible = true,\n        Text = \"Please enter the name to use. You can leave the field empty in order to continue using the default name.\",\n        Title = \"A nice example\",\n    };\n\n    MessageBoxResult result = WpfMessageBox.Show(this, ref msgProperties);\n    ```\n\n4. The `WpfMessageBoxProperties` object allows you to retrieve the `TextBox` and `CheckBox` values after the user closed the message box:\n\n    ```\n    bool checkBoxChecked = msgProperties.IsCheckBoxChecked;\n    string textBoxContent = msgProperties.TextBoxText;\n    ```\n\nMore examples can be found in the Demo project of this repository.\n\n## Release notes\n\nSee the [changelog](CHANGELOG.md).\n\n## License\n\nWpfMessageBox is licensed under the MIT license - see the [LICENSE](LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotiel%2Fwpfmessagebox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotiel%2Fwpfmessagebox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotiel%2Fwpfmessagebox/lists"}