Community.MarcusW.VncClient.Avalonia 2.0.3

dotnet add package Community.MarcusW.VncClient.Avalonia --version 2.0.3
                    
NuGet\Install-Package Community.MarcusW.VncClient.Avalonia -Version 2.0.3
                    
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="Community.MarcusW.VncClient.Avalonia" Version="2.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Community.MarcusW.VncClient.Avalonia" Version="2.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Community.MarcusW.VncClient.Avalonia" />
                    
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 Community.MarcusW.VncClient.Avalonia --version 2.0.3
                    
#r "nuget: Community.MarcusW.VncClient.Avalonia, 2.0.3"
                    
#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 Community.MarcusW.VncClient.Avalonia@2.0.3
                    
#: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=Community.MarcusW.VncClient.Avalonia&version=2.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Community.MarcusW.VncClient.Avalonia&version=2.0.3
                    
Install as a Cake Tool

MarcusW.VncClient.Avalonia

Avalonia UI adapter for the MarcusW.VncClient library. Provides ready-to-use VNC viewer controls for Avalonia applications.

🌟 Features

  • Drop-in Control: Ready-to-use VncView control for immediate integration
  • Full Interaction: Mouse, keyboard, and scroll wheel support out of the box
  • Reactive UI: Built with ReactiveUI for responsive, observable interfaces
  • High Performance: Optimized rendering with dirty rectangle updates
  • Cross-Platform: Works on Windows, Linux, macOS with Avalonia
  • MVVM Ready: Perfect integration with view models and data binding

🚀 Quick Start

1. Install Package

<PackageReference Include="Community.MarcusW.VncClient.Avalonia" Version="2.0.0" />

2. Add Control to XAML

<Window xmlns:vnc="https://github.com/MarcusWichelmann/MarcusW.VncClient.Avalonia">
    <vnc:VncView Connection="{Binding VncConnection}" />
</Window>

3. Configure in View Model

public class MainViewModel : ReactiveObject
{
    private RfbConnection? _vncConnection;
    
    public RfbConnection? VncConnection
    {
        get => _vncConnection;
        set => this.RaiseAndSetIfChanged(ref _vncConnection, value);
    }
    
    public async Task ConnectAsync()
    {
        var vncClient = new VncClient(loggerFactory);
        var parameters = new ConnectParameters 
        {
            TransportParameters = new TcpTransportParameters 
            {
                Host = "your-server.com",
                Port = 5900
            },
            AuthenticationHandler = new YourAuthHandler()
        };
        
        VncConnection = await vncClient.ConnectAsync(parameters);
    }
}

🎮 Control Features

  • Auto-scaling: Automatic scaling to fit available space
  • Input Handling: Complete mouse and keyboard event processing
  • Clipboard Integration: Seamless clipboard sharing (server to client)
  • Connection State: Visual indicators for connection status
  • Error Handling: Graceful error display and recovery

🔧 Advanced Usage

Custom Render Settings

vncView.EnableDirtyRectangleVisualization = true; // Debug rectangles
vncView.ScaleMode = VncViewScaleMode.FitToWindow;  // Scaling behavior

Event Handling

vncView.ConnectionStateChanged += (sender, state) => 
{
    // Handle connection state changes
};

vncView.PointerPositionChanged += (sender, position) => 
{
    // Track remote pointer position
};

📚 Dependencies

This package depends on:

📖 Complete Example

See our Avalonia sample application for a complete implementation example.

🤝 Contributing

Contributions welcome! Please see our GitHub repository for guidelines.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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
2.0.3 101 2/10/2026
2.0.2 100 2/5/2026
2.0.1 96 2/2/2026
2.0.0 96 1/30/2026
2.0.0-alpha9 96 1/22/2026
2.0.0-alpha6 152 11/28/2025
2.0.0-alpha5 203 9/23/2025
2.0.0-alpha4 208 9/23/2025
2.0.0-alpha3 194 9/23/2025
2.0.0-alpha2 194 9/23/2025
2.0.0-alpha1 201 9/23/2025