MessageBox.Avalonia
1.3.0
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
<PackageReference Include="MessageBox.Avalonia" Version="1.3.0" />
paket add MessageBox.Avalonia --version 1.3.0
#r "nuget: MessageBox.Avalonia, 1.3.0"
// 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
To start you should install MessageBox.Avalonia NuGet package
dotnet add package MessageBox.Avalonia
The easiest way to get started is this:
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
:
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:
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:
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:
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 | Versions 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. |
-
.NETStandard 2.0
- Avalonia (>= 0.10.5)
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 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 | 15,426 | 10/27/2024 | |
3.1.6.13 | 9,774 | 10/6/2024 | |
3.1.6 | 29,246 | 7/30/2024 | |
3.1.5.1 | 120,956 | 10/24/2023 | |
3.1.5 | 2,134 | 10/24/2023 | |
3.1.4 | 42,488 | 8/13/2023 | |
3.1.3 | 5,339 | 8/6/2023 | |
3.1.2 | 12,476 | 7/29/2023 | |
3.0.0 | 13,038 | 7/8/2023 | |
2.3.1-rc2 | 453 | 7/2/2023 | |
2.3.1-rc1-1 | 493 | 6/27/2023 | |
2.3.1-rc1 | 3,494 | 6/5/2023 | |
2.3.1-prev7.0 | 8,496 | 5/5/2023 | |
2.3.1-prev6 | 3,158 | 3/30/2023 | |
2.3.1-prev5 | 3,975 | 2/13/2023 | |
2.3.1-prev2 | 7,968 | 10/18/2022 | |
2.2.0 | 11,731 | 9/1/2022 | |
2.1.0 | 110,544 | 8/21/2022 | |
2.1.0-prev2 | 995 | 10/17/2022 | |
2.0.2 | 19,917 | 7/17/2022 | |
2.0.1 | 9,396 | 6/13/2022 | |
2.0.0 | 114,105 | 3/16/2022 | |
1.8.1-night | 2,121 | 2/13/2022 | |
1.7.1 | 35,156 | 12/12/2021 | |
1.7.0 | 2,647 | 12/7/2021 | |
1.6.0 | 2,293 | 12/1/2021 | |
1.5.5 | 6,120 | 10/22/2021 | |
1.5.4 | 1,247 | 10/22/2021 | |
1.5.3 | 2,351 | 10/10/2021 | |
1.5.2 | 1,287 | 10/10/2021 | |
1.5.1 | 12,599 | 6/17/2021 | |
1.5.0 | 2,214 | 6/12/2021 | |
1.3.1 | 2,392 | 5/22/2021 | |
1.3.0 | 1,388 | 5/20/2021 | |
1.2.0 | 4,923 | 4/29/2021 | |
1.1.1 | 8,181 | 3/15/2021 | |
1.1.0 | 1,420 | 3/14/2021 | |
1.0.6 | 3,718 | 3/10/2021 | |
1.0.5 | 8,502 | 2/2/2021 | |
1.0.4 | 1,363 | 1/31/2021 | |
1.0.3 | 1,563 | 1/31/2021 | |
1.0.1 | 3,081 | 1/24/2021 | |
0.10.7-rc1 | 1,879 | 12/16/2020 | |
0.10.4-night | 1,298 | 11/1/2020 | |
0.10.3-night | 1,267 | 11/1/2020 | |
0.10.2-night | 1,271 | 10/1/2020 | |
0.10.1-night | 1,343 | 9/27/2020 | |
0.10.0-prev2 | 3,726 | 8/1/2020 | |
0.10.0-prev1 | 1,585 | 7/26/2020 | |
0.9.6.1 | 54,607 | 3/31/2020 | |
0.9.1.1-prev | 2,833 | 1/31/2020 | |
0.9.0.1-prev | 1,350 | 1/24/2020 | |
0.9.0 | 5,564 | 12/22/2019 | |
0.9.0-preview5 | 1,816 | 11/7/2019 | |
0.8.3 | 7,948 | 8/23/2019 | |
0.8.2.5 | 1,673 | 6/19/2019 | |
0.8.2 | 1,678 | 6/12/2019 | |
0.8.1 | 1,800 | 5/31/2019 |