daniel-luberda / DLToolkit.Forms.Controls

Xamarin.Forms Custom Controls
Apache License 2.0
394 stars 182 forks source link

can't change ImageSource #192

Open GuillermoGomezSanchez opened 6 years ago

GuillermoGomezSanchez commented 6 years ago

I am sorry if it is not the best english, I speak spanish. When I want to change the source of the image in a tapped event, the new image only can be seen when a zoom is applied or when the focus of the image (the part of the image that can be seen) is translating. Is there a solution? I am using this nuget https://github.com/daniel-luberda/DLToolkit.Forms.Controls/tree/master/ImageCropView

This is the code:

<imgcrop:ImageCropView HeightRequest="300" WidthRequest="300" x:Name="cropView">
                    <imgcrop:ImageCropView.GestureRecognizers>
                        <TapGestureRecognizer NumberOfTapsRequired="1" Tapped="UpdateImage"></TapGestureRecognizer>
                    </imgcrop:ImageCropView.GestureRecognizers>
                    <imgcrop:ImageCropView.PreviewTransformations>

                        <FFTr:CircleTransformation />
                    </imgcrop:ImageCropView.PreviewTransformations>
                </imgcrop:ImageCropView>

When a tapped is made the source of the image is change but the new image can only be seen when the user is applying a zoom or a translation to the image

JosFran21 commented 5 years ago

Hello Guillermo, I got the same problem. How did you solve it?

g4ndr4 commented 5 years ago

Developer of plugin needs to add propertychanged to reload source.