[英]xamarin - How to set each new capture photo to each frame?
I'm using this plugin to take a photo and I've successfully created a command function to return the image stream and bind the source. 我正在使用此插件拍照,并且已经成功创建了一个命令函数以返回图像流并绑定源。 In my app, I have 3 frames/boxes and each new captured photo should be on the frame. 在我的应用中,我有3个框/框,每张新捕获的照片都应该在框上。
Ex: the first captured photo should be on the first frame then when I capture again(which is now second photo) it should be on the second frame. 例如:拍摄的第一张照片应该在第一帧,然后当我再次拍摄(现在是第二张照片)时,它应该在第二帧。
this is how I do the binding for the image. 这就是我对图像进行绑定的方式。
<ffimageloading:CachedImage x:Name="FirstPhoto" Aspect="AspectFit"LoadingPlaceholder="loader.gif" Source="{Binding ImagePath}" />
My question is how I will set each new captured photo on each frame? 我的问题是如何在每帧上放置每张新拍摄的照片?
thanks. 谢谢。
您的模型中需要具有多个ImagePath属性(即ImagePath1,ImagePath2,ImagePath3),并且在拍摄完每张照片后更新相应的属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.