{"id":14965158,"url":"https://github.com/nickelony/custommessagebox.avalonia","last_synced_at":"2025-10-25T11:30:57.935Z","repository":{"id":196647708,"uuid":"696715272","full_name":"Nickelony/CustomMessageBox.Avalonia","owner":"Nickelony","description":"A highly customizable MessageBox pop-up for Avalonia with pre-set and custom buttons and plenty of layout options.","archived":false,"fork":false,"pushed_at":"2023-10-09T23:57:31.000Z","size":179,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T07:03:01.812Z","etag":null,"topics":["avalonia","avaloniaui","messagebox","popup"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/CustomMessageBox.Avalonia","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/Nickelony.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2023-09-26T09:48:23.000Z","updated_at":"2025-01-16T15:57:09.000Z","dependencies_parsed_at":"2024-09-13T23:36:14.633Z","dependency_job_id":"3c88fbca-f4df-4fd1-8089-2c29b10cd0dc","html_url":"https://github.com/Nickelony/CustomMessageBox.Avalonia","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"14769305c13d0580f1c9c593cec191a7c797c072"},"previous_names":["nickelony/custommessagebox.avalonia"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nickelony%2FCustomMessageBox.Avalonia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nickelony%2FCustomMessageBox.Avalonia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nickelony%2FCustomMessageBox.Avalonia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nickelony%2FCustomMessageBox.Avalonia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nickelony","download_url":"https://codeload.github.com/Nickelony/CustomMessageBox.Avalonia/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238128510,"owners_count":19421048,"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":["avalonia","avaloniaui","messagebox","popup"],"created_at":"2024-09-24T13:34:18.197Z","updated_at":"2025-10-25T11:30:57.636Z","avatar_url":"https://github.com/Nickelony.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom MessageBox for Avalonia\nA highly customizable MessageBox pop-up for Avalonia with pre-set and custom buttons and plenty of layout options.\n\n# Examples\nFluent:\n\n![image](https://github.com/Nickelony/CustomMessageBox.Avalonia/assets/20436882/e88a03a5-7d4d-4979-a5af-9544f2fac5a0)\n\n![image](https://github.com/Nickelony/CustomMessageBox.Avalonia/assets/20436882/9ead634b-50b6-4b2a-ad13-10bfc2daafc3)\n\nSimple:\n\n![image](https://github.com/Nickelony/CustomMessageBox.Avalonia/assets/20436882/825bb0ec-8cbb-4628-81cf-aa8352301d26)\n\n![image](https://github.com/Nickelony/CustomMessageBox.Avalonia/assets/20436882/38bc6f43-68d2-40c3-ad8b-448ec87ebbcc)\n\n```cs\nMessageBox.Show(\n  \"This is a traditional message box with an \\\"OK\\\" button.\",\n  \"Traditional 1\", MessageBoxButtons.OK);\n```\n---\n![image](https://github.com/Nickelony/CustomMessageBox.Avalonia/assets/20436882/cdfaa29c-4681-40bf-ba1a-907ff498f21a)\n\n```cs\nMessageBoxResult result = MessageBox.Show(\n  \"This is a traditional message box with \\\"YesNoCancel\\\" buttons.\",\n  \"Traditional 2\",\n  MessageBoxButtons.YesNoCancel,\n  MessageBoxIcon.Question,\n  MessageBoxDefaultButton.Button1,\n  \"accent\");\n```\n---\n![image](https://github.com/Nickelony/CustomMessageBox.Avalonia/assets/20436882/6e0b8e30-3a75-49a8-9567-7ba5435b755b)\n\n```cs\nvar messageBox = new MessageBox(\n  \"This is a traditional message box with \\\"YesNo\\\" buttons.\\n\" +\n  \"The buttons are aligned to the center.\",\n  \"Traditional 3\", MessageBoxIcon.Information)\n{\n  HorizontalButtonsPanelAlignment = HorizontalAlignment.Center\n};\n\nvar result = messageBox.Show(MessageBoxButtons.YesNo, MessageBoxDefaultButton.Button1, \"accent\");\n```\n---\n![image](https://github.com/Nickelony/CustomMessageBox.Avalonia/assets/20436882/50416bdf-a7d9-4e10-9c4a-7f7b060c9756)\n\n```cs\nvar bitmap = new Bitmap(AssetLoader.Open(new Uri(\"avares://CustomMessageBox.Avalonia.Demo/Assets/avalonia-logo.ico\")));\n\nvar messageBox = new MessageBox(\n  \"This is a traditional message box with \\\"YesNo\\\" buttons.\\n\" +\n  \"The message contains a custom icon with its size set to 64 x 64.\",\n  \"Traditional 6\", bitmap)\n{\n  IconWidth = 64,\n  IconHeight = 64\n};\n\nvar result = messageBox.Show(MessageBoxButtons.YesNo, MessageBoxDefaultButton.Button1, \"accent\");\n```\n---\n![image](https://github.com/Nickelony/CustomMessageBox.Avalonia/assets/20436882/966d04d7-e219-471f-8585-e7730066f551)\n\n```cs\nvar textBlock = new TextBlock\n{\n  Text = \"This is a custom message box with \\\"YesNoCancel\\\" buttons.\\n\" +\n         \"The buttons are displayed vertically and to the left.\",\n  TextAlignment = TextAlignment.Center\n};\n\nvar messageBox = new MessageBox(textBlock, \"Custom 1\", MessageBoxIcon.Error)\n{\n  DialogContentOrientation = Orientation.Horizontal,\n  MessagePanelOrientation = Orientation.Vertical,\n  ButtonsPanelOrientation = Orientation.Vertical,\n  IconWidth = 192,\n  IconHeight = 192\n};\n\nvar result = messageBox.Show(\n  new MessageBoxButton\u003cMessageBoxResult\u003e(MessageBox.YesText, MessageBoxResult.Yes, SpecialButtonRole.IsDefault, \"accent\"),\n  new MessageBoxButton\u003cMessageBoxResult\u003e(MessageBox.NoText, MessageBoxResult.No),\n  new MessageBoxButton\u003cMessageBoxResult\u003e(MessageBox.CancelText, MessageBoxResult.Cancel, SpecialButtonRole.IsCancel)\n);\n```\n---\n![image](https://github.com/Nickelony/CustomMessageBox.Avalonia/assets/20436882/28756ccd-cfb9-46ef-ba57-dc783943682a)\n\n```cs\nvar textBlock = new TextBlock\n{\n  Text = \"This is a custom message box with custom buttons.\\n\" +\n         \"The icon is displayed above the text.\",\n  TextAlignment = TextAlignment.Center\n};\n\nvar messageBox = new MessageBox(textBlock, \"Custom 2\", MessageBoxIcon.Information)\n{\n  MessagePanelOrientation = Orientation.Vertical,\n  HorizontalButtonsPanelAlignment = HorizontalAlignment.Center,\n  MinButtonWidth = 125\n};\n\nvar result = messageBox.Show(\n  new MessageBoxButton\u003cMessageBoxResult\u003e(\"Yes, Confirm\", MessageBoxResult.Yes, SpecialButtonRole.IsDefault, \"accent\"),\n  new MessageBoxButton\u003cMessageBoxResult\u003e(\"No, Cancel\", MessageBoxResult.Cancel, SpecialButtonRole.IsCancel)\n);\n```\n---\n![image](https://github.com/Nickelony/CustomMessageBox.Avalonia/assets/20436882/75fa3bea-215b-4d16-abbb-9ef73aaa5df3)\n\n```cs\nvar textBlock = new TextBlock\n{\n  Text = \"This is a custom message box with custom buttons.\\n\\n\" +\n         \"The buttons are displayed vertically and on the bottom.\\n\" +\n         \"The icon is displayed above the text.\",\n  TextAlignment = TextAlignment.Center\n};\n\nvar messageBox = new MessageBox(textBlock, \"Custom 3\", MessageBoxIcon.Warning)\n{\n  MessagePanelOrientation = Orientation.Vertical,\n  HorizontalButtonsPanelAlignment = HorizontalAlignment.Center,\n  ButtonsPanelOrientation = Orientation.Vertical\n};\n\nCustomMessageBoxResult result = messageBox.Show(\n  new MessageBoxButton\u003cCustomMessageBoxResult\u003e(\"Accept\", CustomMessageBoxResult.Accept, SpecialButtonRole.None, \"accent\"),\n  new MessageBoxButton\u003cCustomMessageBoxResult\u003e(\"Decline\", CustomMessageBoxResult.Decline)\n);\n```\n---\n![image](https://github.com/Nickelony/CustomMessageBox.Avalonia/assets/20436882/1d6ab0f5-313c-4554-9559-0884a306aa92)\n\n```cs\nvar bitmap = new Bitmap(AssetLoader.Open(new Uri(\"avares://CustomMessageBox.Avalonia.Demo/Assets/avalonia-logo.ico\")));\n\nvar messageBox = new MessageBox(\n  \"This is a custom message box with custom buttons.\\n\" +\n  \"The icon is custom and is displayed above the text.\",\n  \"Custom 4\", bitmap)\n{\n  DialogContentOrientation = Orientation.Horizontal,\n  MessagePanelOrientation = Orientation.Vertical,\n  ButtonsPanelOrientation = Orientation.Vertical,\n  IconWidth = 256,\n  IconHeight = 256\n};\n\nint result = messageBox.Show(\n  new MessageBoxButton\u003cint\u003e(\"English\", 1),\n  new MessageBoxButton\u003cint\u003e(\"Polish\", 2),\n  new MessageBoxButton\u003cint\u003e(\"German\", 3),\n  new MessageBoxButton\u003cint\u003e(\"Spanish\", 4),\n  new MessageBoxButton\u003cint\u003e(\"Italian\", 5),\n  new MessageBoxButton\u003cint\u003e(\"French\", 6),\n  new MessageBoxButton\u003cint\u003e(\"Chinese\", 7)\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickelony%2Fcustommessagebox.avalonia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickelony%2Fcustommessagebox.avalonia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickelony%2Fcustommessagebox.avalonia/lists"}