VariableBox.Avalonia 0.2.0

dotnet add package VariableBox.Avalonia --version 0.2.0                
NuGet\Install-Package VariableBox.Avalonia -Version 0.2.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="VariableBox.Avalonia" Version="0.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VariableBox.Avalonia --version 0.2.0                
#r "nuget: VariableBox.Avalonia, 0.2.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 VariableBox.Avalonia as a Cake Addin
#addin nuget:?package=VariableBox.Avalonia&version=0.2.0

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

VariableBox

<p align="center">

Wanna help

欢迎任何人士帮忙支持并让这个简单控件变得更好,我们需要你们。

welcome any one to help and make this simple control better, we need you.

</p>

GitHub stars GitHub release Nuget Nuget Nuget Nuget

<p align="center"> <img src="./assets/light_demo.png" alt="drawing" width="150" /> </p>

VariableBox is a UI library for building cross-platform UIs with Avalonia UI.

Demo

ChangeLog

  • 2025/1/9
    1. Using a theme pack that is compatible with Simple, Fluent, and SemiThemes.
    2. Package Theme To the Control Package, You do not need another package anymore

Feature

NumericalUpDown

  • all numerical type support
  • spinning updown support
  • get (read) /set (write) support
  • rich formatting support like hex, dec and bin
  • drag support, you can use mouse to drag
  • mouse scroll support
  • shortcut and arrow key support
    • <kbd>Esc</kbd> for cancel editing
    • <kbd>Enter</kbd> for trigger
    • <kbd>up</kbd> for increase
    • <kbd>down</kbd> for decrease
    • <kbd>alt+left</kbd> for read
    • <kbd>alt+right</kbd>/<kbd>alt+enter</kbd>for trigger (force) write
  • identify support
    • * for editing
    • red <font color=red>*</font> for error input
    • green <font color=green>*</font> for right input

EnumerationUpDown

  • todo

How to use

VariableBox

Add nuget package:

dotnet add package VariableBox.Avalonia

You can now use Ursa controls in your Avalonia Application.

<Window
    ...
    xmlns:vbox="VariableBox"
    ...>
    <StackPanel Margin="20">
        <vbox:VariableBoxUInt Value="{Binding Value}" 
            FormatString="X8"
            HeaderContent="0x"
            ParsingNumberStyle="AllowHexSpecifier"
            Step="2"
            IsEnableEditingIndicator="True"
            />
    </StackPanel>
</Window>

VariableBox.Themes

To make Ursa controls show up in your application, you need to reference to a theme package designed for VariableBox.

YOU do not need any other VariableBox package now

  • vbox:SemiTheme is a theme package for Ursa inspired by Semi Design.

    you need to add package Semi.Avalonia frist

  • vbox:SimpleTheme is compatible with <SimpleTheme/>

  • vbox:FluentTheme is compatible with <FluentTheme/>

You can add it to your project by following steps.

  1. Add nuget package:
dotnet add package Semi.Avalonia
dotnet add package VariableBox.Avalonia
  1. Include Styles in application:
  • FluentTheme
<Application...
    xmlns:vbox="VariableBox"
    ....>
    <Application.Styles>
        
        <vbox:FluentTheme Locale="zh-CN"/>
    </Application.Styles>
  • SimpleTheme
<Application...
    xmlns:vbox="VariableBox"
    ....>
    <Application.Styles>
        <SimpleTheme/>
        <vbox:SimpleTheme Locale="zh-CN"/>
    </Application.Styles>
  • SemiTheme
<Application...
    xmlns:vbox="VariableBox"
    ....>
    <Application.Styles>
                
        <semi:SemiTheme Locale="zh-CN"/>
        <vbox:SemiTheme Locale="zh-CN"/>
    </Application.Styles>
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 is compatible.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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 (1)

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

Package Downloads
VariableBox.Avalonia.Themes.Semi

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.