- Home
- Forum
- Xamarin.Forms
- How to delete images (null). (SfImageEditor)
How to delete images (null). (SfImageEditor)
Hello friends.
After I take a picture and save it. I want the image to be empty.
I tried
SfImageEditor.Source = null;
But no success (it still shows) ==> I want it to be null
Thank you guys.
Thanks for your support.
I apologize for not making my question clear.
My approaches are different from yours so I applied "editor.Source = null;" with no success.
My XAML Code
<syncfusion:SfImageEditor x:Name=" editor " Grid.Row="3" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" ImageSaving=" editor_ImageSaving"/>
==> Do not use: Source="{Binding Image}"
My C# code to assign image to SfImageEditor
editor .Source = new UriImageSource
{
Uri = new Uri("https://demoimage.blob.core.windows.net/luutru/001.jpg"),
CachingEnabled = false
};
==> I use the code "editor.Source = null;" it doesn't change anything, doesn't make the image blank
- 3 Replies
- 2 Participants
-
HN Huy Nguyen Xuan
- Aug 21, 2021 02:59 PM UTC
- Aug 25, 2021 09:59 AM UTC