Consolonia.Blazor 11.3.12.67

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Consolonia.Blazor --version 11.3.12.67
                    
NuGet\Install-Package Consolonia.Blazor -Version 11.3.12.67
                    
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="Consolonia.Blazor" Version="11.3.12.67" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Consolonia.Blazor" Version="11.3.12.67" />
                    
Directory.Packages.props
<PackageReference Include="Consolonia.Blazor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Consolonia.Blazor --version 11.3.12.67
                    
#r "nuget: Consolonia.Blazor, 11.3.12.67"
                    
#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.
#:package Consolonia.Blazor@11.3.12.67
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Consolonia.Blazor&version=11.3.12.67
                    
Install as a Cake Addin
#tool nuget:?package=Consolonia.Blazor&version=11.3.12.67
                    
Install as a Cake Tool

logo

Consolonia.Blazor

This package provides the ability to use Blazor .razor files to create console apps using Consolonia.

blazor

Example Razor file

Things to note:

  • Method binding to code behind
  • Conditional layout of elements
  • Full intellisense for renaming going to code behind autocomplete etc.
  • injection of INavigation so you can push and pop views off of the nav stack
  • injection of IClassicDesktopStyleApplicationLifetime so you can access Args and shutdown the app.
  • HOT RELOAD. simple save the file and your view gets rebuilt and rerendered!
@page "/"
@inject INavigation navigation
@inject IClassicDesktopStyleApplicationLifetime lifetime

@namespace Example.Blazor.Components

<Window Title="Blazor Bindings for Consolonia" Topmost="true">
     <StackPanel Orientation="Orientation.Vertical" VerticalAlignment="VerticalAlignment.Center">
        @if (showCounter)
        {
            <TextBlock HorizontalAlignment="HorizontalAlignment.Center">Counter: @CounterText</TextBlock>
        }
        <StackPanel Orientation="Orientation.Vertical" HorizontalAlignment="HorizontalAlignment.Center" Margin="@Thickness.Parse("4")">
            <Button OnClick="@OnIncrement">Increment counter support</Button>
            <Button OnClick="@OnToggleCounter">@ToggleText</Button>
            <Button OnClick="@OnMessageBox">Message Box</Button>
            <Button OnClick="@OnGotoSubPage">Go to SubPage</Button>
            <Button OnClick="@OnExit">Exit</Button>
        </StackPanel>
    </StackPanel> 
</Window>

@code {
    int counter = 0;
    bool showCounter = true;

    string CounterText => counter switch
    {
        0 => "Not clicked",
        1 => $"Clicked 1 time",
        _ => $"Clicked {counter} times"
    };

    string ToggleText => showCounter ? "Hide Counter" : "Show Counter";

    void OnIncrement()
        => counter++;

    void OnToggleCounter()
        => showCounter = !showCounter;

    void OnGotoSubPage()
        => navigation.PushAsync<SubPage>();

    async void OnMessageBox(RoutedEventArgs args)
    {
        await new MessageBox()
            .ShowDialogAsync((AC.Control)args.Source!, "Hello, Blazor!", "Blazor Bindings for Consolonia");
    }

    void OnExit()
       => lifetime.Shutdown();
}
Product Compatible and additional computed target framework versions.
.NET 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 was computed.  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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.3.12.71-beta.71 47 5/1/2026
11.3.12.70-beta.70 42 5/1/2026
11.3.12.69-beta.69 41 5/1/2026
11.3.12.68-beta.68 51 4/21/2026
11.3.12.67 98 4/17/2026
11.3.7-beta.2027 410 11/18/2025
11.3.7-beta.1941 133 11/8/2025
11.3.7-beta.1831 121 10/25/2025
11.3.7-beta.1773 123 10/17/2025
11.3.4-beta.1699 112 10/10/2025
11.3.4-beta.1685 169 10/9/2025
11.3.4-beta.1648 182 10/1/2025
11.3.4-beta.1604 235 9/19/2025
11.3.4-beta.1598 252 9/19/2025
11.3.4-beta.1573 303 9/16/2025
11.3.4-beta.1547 150 9/13/2025
11.3.4-beta.1545 146 9/13/2025
11.3.4-beta.1533 146 9/13/2025
11.3.4-beta.1527 145 9/13/2025
11.3.4-beta.1499 115 9/12/2025
Loading failed