Nlnet.Avalonia.MessageBox 1.0.0-beta.2

This is a prerelease version of Nlnet.Avalonia.MessageBox.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Nlnet.Avalonia.MessageBox --version 1.0.0-beta.2                
NuGet\Install-Package Nlnet.Avalonia.MessageBox -Version 1.0.0-beta.2                
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="Nlnet.Avalonia.MessageBox" Version="1.0.0-beta.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nlnet.Avalonia.MessageBox --version 1.0.0-beta.2                
#r "nuget: Nlnet.Avalonia.MessageBox, 1.0.0-beta.2"                
#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 Nlnet.Avalonia.MessageBox as a Cake Addin
#addin nuget:?package=Nlnet.Avalonia.MessageBox&version=1.0.0-beta.2&prerelease

// Install Nlnet.Avalonia.MessageBox as a Cake Tool
#tool nuget:?package=Nlnet.Avalonia.MessageBox&version=1.0.0-beta.2&prerelease                

Nlnet.Avalonia.MessageBox

This provides a MessageBox control that can follow WPF standard or Avalonia standard.

messagebox

Usage

  • Installation.
dotnet add package Nlnet.Avalonia.MessageBox --version 1.0.0.0
  • Show MessageBox in behind code.
// WPF Standard: call messagebox synchronous.
private void BtnShowMessageBox_OnClick(object? sender, RoutedEventArgs e)
{
    var buttons = (Buttons)CbxButtons.SelectionBoxItem!;
    var image = (Images)CbxImage.SelectionBoxItem!;
    var result = MessageBox.Show("Hello, this is Nlnet MessageBox :)", "Welcome", buttons, image);
    
    TbxSelectedButton.Text = result.ToString();
}

// Avalonia Standard: call messagebox asynchronous.
private async void BtnShowMessageBoxAsync_OnClick(object? sender, RoutedEventArgs e)
{
    var buttons = (Buttons)CbxButtons.SelectionBoxItem!;
    var image   = (Images)CbxImage.SelectionBoxItem!;
    var result  = await MessageBox.ShowAsync("Hello, this is Nlnet MessageBox :)", "Welcome", buttons, image);
    
    TbxSelectedButton.Text = result.ToString();
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

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

Package Downloads
Nlnet.Avalonia.Css.Fluent

Provide fluent themes for Avalonia.Controls, Nlnet.Avalonia.Senior, Nlnet.Avalonia.MessageBox.

GitHub repositories (1)

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

Repository Stars
liwuqingxin/Avalonia.Css
Enable css for avalonia.
Version Downloads Last updated
1.0.2 318 3/16/2024
1.0.0 435 11/6/2023
1.0.0-beta.3 215 8/27/2023
1.0.0-beta.2 78 8/23/2023
1.0.0-beta.1 132 8/16/2023