Romanv.WpfChessboard
0.9.1
dotnet add package Romanv.WpfChessboard --version 0.9.1
NuGet\Install-Package Romanv.WpfChessboard -Version 0.9.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="Romanv.WpfChessboard" Version="0.9.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Romanv.WpfChessboard" Version="0.9.1" />
<PackageReference Include="Romanv.WpfChessboard" />
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 Romanv.WpfChessboard --version 0.9.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Romanv.WpfChessboard, 0.9.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.
#:package Romanv.WpfChessboard@0.9.1
#: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=Romanv.WpfChessboard&version=0.9.1
#tool nuget:?package=Romanv.WpfChessboard&version=0.9.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RV.WpfChessboard
Chessboard component for WPF applications.
Usage
<chessboard:WpfChessboard
Position="{Binding GameState.Position}">
<behaviors:Interaction.Triggers>
<behaviors:EventTrigger EventName="OnMoveCompleted">
<behaviors:InvokeCommandAction Command="{Binding MoveCompletedCommand}" PassEventArgsToCommand="True" />
</behaviors:EventTrigger>
</behaviors:Interaction.Triggers>
</chessboard:WpfChessboard>
Properties
| Property | Type | Description |
|---|---|---|
| LightSquaresColor | SolidColorBrush | Color of light squares |
| DarkSquaresColor | SolidColorBrush | Color of dark squares |
| HighlightedSquaresColor | SolidColorBrush | Color of highlighted squares |
| HighlightedSquares | IEnumerable<string> | List of highlighted squares (a1, c7, etc.) |
| LegalDestinationsMarkerColor | SolidColorBrush | Color of legal move destination squares |
| LegalMoveDestinations | IENumerable<string> | List of legal destination squares (a1, c7, etc.) |
| UseLegalMoveDestinations | bool | Use legal move destinations or allow any move |
| IsFlipped | bool | Show flipped board (with black on the bottom) |
| Position | string | Position on the board (in FEN chess notation) |
| Arrows | IEnumerable<WpfChessboardArrow> | List of arrows to draw on the board |
| CornerRadius | double | Board corner radius |
| FontFamily | FontFamily | Font family used to draw square coordinates |
| DrawCoordinates | bool | Draw square coordinates |
| BlockInteractions | bool | Block all used interactions with the board |
| Animate | bool | Enable/disable move animations |
Events
| Name | Type | Description |
|---|---|---|
| OnMoveStarted | MoveStartedEventArgs | Triggered after the interaction with a piece |
| OnMoveCompleted | MoveCompletedEventArgs | Triggered after the piece is dropped on a target square |
| OnMoveCancelled | MoveCancelledEventArgs | Triggered after the move is cancelled by pressing ESC or dropping the piece outside of the board |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows 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.
-
net8.0-windows7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.