MessageBox.Avalonia 1.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package MessageBox.Avalonia --version 1.3.0                
NuGet\Install-Package MessageBox.Avalonia -Version 1.3.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MessageBox.Avalonia" Version="1.3.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MessageBox.Avalonia --version 1.3.0                
#r "nuget: MessageBox.Avalonia, 1.3.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MessageBox.Avalonia as a Cake Addin
#addin nuget:?package=MessageBox.Avalonia&version=1.3.0

// Install MessageBox.Avalonia as a Cake Tool
#tool nuget:?package=MessageBox.Avalonia&version=1.3.0                

MessageBox.Avalonia

Messagebox for AvaloniaUI

alternate text is missing from this package README image

To start you should install MessageBox.Avalonia NuGet package

dotnet add package MessageBox.Avalonia

nuget or download this repo.

nuget


The easiest way to get started is this:

alternate text is missing from this package README image

var messageBoxStandardWindow = MessageBox.Avalonia.MessageBoxManager
  .GetMessageBoxStandardWindow("title", "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed...");
messageBoxStandardWindow.Show();

Or this, with default buttons from the default ButtonEnum:

alternate text is missing from this package README image

var msBoxStandardWindow = MessageBox.Avalonia.MessageBoxManager
    .GetMessageBoxStandardWindow(new MessageBoxStandardParams{
        ButtonDefinitions = ButtonEnum.OkAbort,
        ContentTitle = "Title",
        ContentMessage = "Message",
        Icon = Icon.Plus,
        Style = Style.UbuntuLinux
    });
msBoxStandardWindow.Show();

Or like this, with custom buttons:

alternate text is missing from this package README image

 var messageBoxCustomWindow = MessageBox.Avalonia.MessageBoxManager
                .GetMessageBoxCustomWindow(new MessageBoxCustomParams
                {
                    Style = Style.UbuntuLinux,
                    ContentMessage = "支持FontFamily",
                    FontFamily = "Microsoft YaHei,Simsun",
                    ButtonDefinitions = new[] {
                        new ButtonDefinition {Name = "My"},
                        new ButtonDefinition {Name = "Buttons", Type = ButtonType.Colored}
                    },
                    WindowStartupLocation = WindowStartupLocation.CenterOwner
                });
messageBoxCustomWindow.Show();

And you may use your own images:

alternate text is missing from this package README image

 var messageBoxCustomWindow = MessageBox.Avalonia.MessageBoxManager
                .GetMessageBoxCustomWindow(new MessageBoxCustomParamsWithImage
                {
                    Style = Style.UbuntuLinux,
                    ContentMessage = "Message",
                    Icon = new Bitmap("./icon-rider.png"),
                    ButtonDefinitions = new[] {
                        new ButtonDefinition {Name = "My"},
                        new ButtonDefinition {Name = "Buttons", Type = ButtonType.Colored}
                    },
                    WindowStartupLocation = WindowStartupLocation.CenterOwner
                });
 messageBoxCustomWindow.Show();

Also you may use hyperlink boxes:

alternate text is missing from this package README image

 var messageBoxCustomWindow = MessageBox.Avalonia.MessageBoxManager.GetMessageBoxHyperlinkWindow(new MessageBoxHyperlinkParams()
            {
                CanResize = true,
                Style = MessageBoxAvaloniaEnums.Style.MacOs,
                HyperlinkContentProvider = new[]{
                    new HyperlinkContent { Alias = "dedede         ", Url = "https://avaloniaui.net/docs/styles/styles" },
                    new HyperlinkContent { Alias="edvyydebbvydebvyed         "},
                    new HyperlinkContent { Url= "https://avaloniaui.net/docs/styles/styles" }
                },
                WindowStartupLocation = WindowStartupLocation.CenterScreen,
                ButtonDefinitions = MessageBoxAvaloniaEnums.ButtonEnum.Ok
            });
messageBoxCustomWindow.Show();

Powered by

<a href="https://www.jetbrains.com/?from=ABC"> <img width="400" alt="portfolio_view" src="https://github.com/CreateLab/MessageBox.Avalonia/blob/master/Images/jetbrains-variant-4.png" /> </a>

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (19)

Showing the top 5 NuGet packages that depend on MessageBox.Avalonia:

Package Downloads
VisioForge.DotNet.Core.UI.Avalonia

VisioForge Controls UI Wrappers for Avalonia

H.ReactiveUI.CommonInteractions.Avalonia

Common ReactiveUI MVVM Level Interactions(like open/save file) for WPF/UWP/WinUI/Uno/Avalonia platforms ⭐ Last 10 features: - feat: Updated NuGet packages. 2022-08-11 - feat: Updated NuGet packages. 2022-07-11 - feat: Published WebAssembly app. 2022-07-01 - feat: Updated NuGet packages. 2022-07-01 - feat: To DependencyPropertyGenerator. 2022-06-29 - feat: Updated NuGet packages. 2022-06-29 - feat: Added BaseConverter DefaultConvertValue/DefaultConvertBackValue. 2022-06-24 - feat: Updated NuGet packages. 2022-03-25 - feat: Updated NuGet packages. 2022-03-17 - feat: Changed WinUI implementatation to use ContentDialog instead MessageDialog. 2022-03-17 🐞 Last 10 bug fixes: - fix: To WinRT.Interop. 2022-07-14 - fix: Disabled linker. 2022-07-01 - fix: Fixed Uno targets. 2022-03-18 - fix: Fixed missing Warning ContentDialog. 2022-03-17 - fix(apps): Fixed Uno.WinUI webassembly app. 2022-01-19 - fix: Fixed package description. 2021-12-22 - fix(Avalonia): Changed BaseConverter null values to UnsetValue. 2021-12-15 - fix(Avalonia): Fixed OpenFileDialog Filters bug. 2021-12-11 - fix: Fixed CI to release avalonia. 2021-12-10 - fix(apps.Avalonia): Fixed FileInteractions. 2021-12-09

KH.AvaloniaBase

InstrumentBaseLib

AlienJust.Support.Avalonia

Some stuff for Avalonia

HanumanInstitute.MvvmDialogs.Avalonia.MessageBox

Library simplifying the concept of opening dialogs from a view model when using MVVM in WPF

GitHub repositories (33)

Showing the top 5 popular GitHub repositories that depend on MessageBox.Avalonia:

Repository Stars
2dust/v2rayN
A GUI client for Windows and Linux, support Xray core and v2fly core and others
mgth/LittleBigMouse
DPI Aware mouse move across screens
tylearymf/UniHacker
Patch all versions of Unity3D and UnityHub for Windows, MacOS, Linux and Docker.
gusmanb/logicanalyzer
24 channel, 100Msps logic analyzer hardware and software
uxmal/reko
Reko is a binary decompiler.
Version Downloads Last updated
3.2.0 9,201 10/27/2024
3.1.6.13 8,921 10/6/2024
3.1.6 28,164 7/30/2024
3.1.5.1 118,595 10/24/2023
3.1.5 2,050 10/24/2023
3.1.4 42,275 8/13/2023
3.1.3 5,295 8/6/2023
3.1.2 12,020 7/29/2023
3.0.0 12,920 7/8/2023
2.3.1-rc2 452 7/2/2023
2.3.1-rc1-1 492 6/27/2023
2.3.1-rc1 3,456 6/5/2023
2.3.1-prev7.0 8,391 5/5/2023
2.3.1-prev6 3,150 3/30/2023
2.3.1-prev5 3,959 2/13/2023
2.3.1-prev2 7,954 10/18/2022
2.2.0 11,704 9/1/2022
2.1.0 109,887 8/21/2022
2.1.0-prev2 992 10/17/2022
2.0.2 19,807 7/17/2022
2.0.1 9,380 6/13/2022
2.0.0 114,014 3/16/2022
1.8.1-night 2,116 2/13/2022
1.7.1 35,048 12/12/2021
1.7.0 2,644 12/7/2021
1.6.0 2,289 12/1/2021
1.5.5 6,106 10/22/2021
1.5.4 1,244 10/22/2021
1.5.3 2,327 10/10/2021
1.5.2 1,284 10/10/2021
1.5.1 12,591 6/17/2021
1.5.0 2,208 6/12/2021
1.3.1 2,389 5/22/2021
1.3.0 1,381 5/20/2021
1.2.0 4,848 4/29/2021
1.1.1 8,164 3/15/2021
1.1.0 1,414 3/14/2021
1.0.6 3,715 3/10/2021
1.0.5 8,491 2/2/2021
1.0.4 1,360 1/31/2021
1.0.3 1,560 1/31/2021
1.0.1 3,060 1/24/2021
0.10.7-rc1 1,872 12/16/2020
0.10.4-night 1,297 11/1/2020
0.10.3-night 1,266 11/1/2020
0.10.2-night 1,270 10/1/2020
0.10.1-night 1,342 9/27/2020
0.10.0-prev2 3,725 8/1/2020
0.10.0-prev1 1,583 7/26/2020
0.9.6.1 52,252 3/31/2020
0.9.1.1-prev 2,830 1/31/2020
0.9.0.1-prev 1,347 1/24/2020
0.9.0 5,536 12/22/2019
0.9.0-preview5 1,813 11/7/2019 0.9.0-preview5 is deprecated because it is no longer maintained.
0.8.3 7,870 8/23/2019 0.8.3 is deprecated because it is no longer maintained.
0.8.2.5 1,670 6/19/2019 0.8.2.5 is deprecated because it is no longer maintained.
0.8.2 1,675 6/12/2019 0.8.2 is deprecated because it is no longer maintained.
0.8.1 1,797 5/31/2019 0.8.1 is deprecated because it is no longer maintained.