Skip to content

Capturing a piece tries to use .Send(), which isn't available in WinUI3 #28

@edgiardina

Description

@edgiardina

Describe the bug
In .NET Maui Windows (Which wraps WinUI 3 basically), the library cannot be consumed because of the .Send in the events.

To Reproduce
Create a new .NET MAUI app. Try to capture a piece in the code. See an exception.

System.NotSupportedException: 'The send method is not supported, use Post instead.'
   at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.Send(SendOrPostCallback d, Object state)
   at Chess.ChessBoard.OnCapturedEvent(Piece piece)
   at Chess.ChessBoard.Move(Move move)
   at Chess.MainPage.OnSquareTapped(

Expected behaviour
Capturing a piece

Screenshots
My repo is public so you can just pull this down:
https://github.com/[edgiardina/Chess](https://github.com/edgiardina/Chess)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions