You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CameraView.StopCameraPreviewCommand is not working correctly. When binding this command to a button, the app raises the following exception:
System.InvalidCastException: 'Unable to cast object of type 'Microsoft.Maui.Controls.Command' to type 'Microsoft.Maui.Controls.Command`1[System.Threading.CancellationToken]'.'
Expected Behavior
The StopCameraPreviewCommand should work as expected.
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
The
CameraView.StopCameraPreviewCommandis not working correctly. When binding this command to a button, the app raises the following exception:System.InvalidCastException: 'Unable to cast object of type 'Microsoft.Maui.Controls.Command' to type 'Microsoft.Maui.Controls.Command`1[System.Threading.CancellationToken]'.'
Expected Behavior
The
StopCameraPreviewCommandshould work as expected.Steps To Reproduce
Link to public reproduction project repository
https://github.com/CommunityToolkit/Maui/tree/main/samples
Environment
Anything else?
No response