hjam40 / Camera.MAUI

A CameraView Control for preview, take photos and control the camera options
MIT License
449 stars 72 forks source link

请问CameraView时,如何将CameraView的事件(event)转换为命令(command) #47

Open humblexwang opened 1 year ago

humblexwang commented 1 year ago

如果没有的话,多会能帮忙加一下,万分感谢

silmoonsone commented 1 year ago

自己封装一下呗。 看这里: https://learn.microsoft.com/zh-cn/xamarin/xamarin-forms/xaml/bindable-properties https://learn.microsoft.com/zh-cn/dotnet/maui/fundamentals/bindable-properties

hjam40 commented 1 year ago

Hi,

In the new version 1.4.4, you have a Self bindable property (type CameraView) that you could use from your model to initiate the control events.