Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

CameraView issue - EventToCommandBehavior: Couldn't resolve the event #1443

@slprog1

Description

@slprog1

Hello there,
I'm using CameraView and EventToCommandBehavior to create some sort of a simple app that makes photos.
But I've faced with the issue of using EventToCommandBehavior. When running app in Release mode on both android emulator and real device I do see the following error in Application Output:

[MonoDroid] UNHANDLED EXCEPTION:
[MonoDroid] Android.Runtime.JavaProxyThrowable: Exception of type 'Android.Runtime.JavaProxyThrowable' was thrown.
[MonoDroid] --- End of managed Android.Runtime.JavaProxyThrowable stack trace ---
[MonoDroid] android.runtime.JavaProxyThrowable: System.ArgumentException: EventToCommandBehavior: Couldn't resolve the event.
[MonoDroid] Parameter name: EventName

The code itself isn't that complicated:

<xct:CameraView
               x:Name="CameraView"
               BindingContext="{Binding CameraModel}"
               CameraOptions="{Binding CameraOption}"
               HorizontalOptions="FillAndExpand"
               VerticalOptions="FillAndExpand"
               CaptureMode="Photo">
               <xct:CameraView.Behaviors>
                   <xct:EventToCommandBehavior EventName="MediaCaptured" Command="{Binding CaptureCommand}" />
               </xct:CameraView.Behaviors>
</xct:CameraView>

The Environment is the latest one at this moment:

Visual Studio Community 2019 for Mac
Version 8.10.3 (build 15)
Installation UUID: c4debf69-38dc-430a-b7ff-71b5f73fb9f3
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)

Package version: 612000140

Mono Framework MDK
Runtime:
Mono 6.12.0.140 (2020-02/51d876a041e) (64-bit)
Package version: 612000140

Roslyn (Language Service)
3.10.0-4.21269.26+029847714208ebe49668667c60ea5b0a294e0fcb

NuGet
Version: 5.9.0.7134

.NET Core SDK
SDK: /usr/local/share/dotnet/sdk/5.0.301/Sdks
SDK Versions:
5.0.301

Thanks in advance for helping!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    a/LinkerbugSomething isn't working. Breaky break.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions