Nerdlabs.Avalonia.Extension
1.0.1.1
dotnet add package Nerdlabs.Avalonia.Extension --version 1.0.1.1
NuGet\Install-Package Nerdlabs.Avalonia.Extension -Version 1.0.1.1
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="Nerdlabs.Avalonia.Extension" Version="1.0.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nerdlabs.Avalonia.Extension --version 1.0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Nerdlabs.Avalonia.Extension, 1.0.1.1"
#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 Nerdlabs.Avalonia.Extension as a Cake Addin #addin nuget:?package=Nerdlabs.Avalonia.Extension&version=1.0.1.1 // Install Nerdlabs.Avalonia.Extension as a Cake Tool #tool nuget:?package=Nerdlabs.Avalonia.Extension&version=1.0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Nerdlabs.Avalonia.Extension
An extension to AvaloniaUI providing custom or additional control(s)
to the core project. Currently containing MessageBox
control based
on MessageBoxSlim.Avalonia
Changelog
1.0.1
- Removed
IsResizable
which is equivalent toCanResize
property as I find it a nuisance more than a feature. MessageBoxStyle.Icon
is now more aligned with theMessageBoxStyle.Message
on presentation-level.MessageBox
width now scales withMessageBoxStyle.MaxWidth
so you have a single property that sets both.
1.0.0
- Centered the text of controls such as buttons.
- Changed the message containing control from
TextBox
toTextBlock
for a more MessageBox like feel. - Message content is now wrap with the containing parent window instead of being chopped off.
- Added
BorderlessMessageBox
for other specific usage and set as the default MessageBox style whenMessageBoxStyle.None
is used.
Installation
You can find the latest version of this Package on NuGet
Example Usage
Include using
statements at the top of your namespace declaration.
using Nerdlabs.Avalonia.Extension;
using Nerdlabs.Avalonia.Extension.Controls;
using Nerdlabs.Avalonia.Extension.DtObject;
Next, on the method where you want to show a MessageBox
, include something
like this:
await MessageBox
.Create(new MessageBoxOptions
{
Button = MessageBoxButton.OK | MessageBoxButton.Cancel,
Title = "Error",
Icon = BitmapFactory.Load("avares://Nerdlabs.Avalonia.Extension/Assets/error.ico"),
Message = "Sorry, Something went wrong.",
MaxWidth = 520,
})
.AsyncShowDialog(this);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- Avalonia (>= 0.10.10)
- Avalonia.Desktop (>= 0.10.10)
- Avalonia.ReactiveUI (>= 0.10.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.