<Grid HeightRequest="500" WidthRequest="300" HorizontalOptions="Center" VerticalOptions="Center"> <imageeditor:SfImageEditor x:Name="editor"> </imageeditor:SfImageEditor> </Grid> |
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:imageeditor="clr-namespace:Syncfusion.SfImageEditor.XForms;assembly=Syncfusion.SfImageEditor.XForms" xmlns:border="clr-namespace:Syncfusion.XForms.Border;assembly=Syncfusion.Core.XForms" x:Class="ImageEditor.MyPage1"> <ContentPage.Content> <border:SfBorder CornerRadius="20"> <imageeditor:SfImageEditor x:Name="editor"> </imageeditor:SfImageEditor> </border:SfBorder> </ContentPage.Content> </ContentPage> |
<border:SfBorder CornerRadius="20"> <imageeditor:SfImageEditor x:Name="editor"> <imageeditor:SfImageEditor.ToolbarSettings> <imageeditor:ToolbarSettings IsVisible="false" /> </imageeditor:SfImageEditor.ToolbarSettings> </imageeditor:SfImageEditor> </border:SfBorder> |
public GettingStarted()
{
InitializeComponent();
imageEditor.SetToolbarItemVisibility("Text, Shape, Brightness, Effects, Bradley Hand, Path, 3:1, 3:2, 4:3, 5:4, 16:9,Original, Free, Ellipse, Square,Circular, Reset,Save, Undo, Redo, Transform", false);
imageEditor.ToolbarSettings.ToolbarItems.Add(new FooterToolbarItem() { Text = "" });
imageEditor.ImageLoaded += ImageEditor_ImageLoaded;
}
private void ImageEditor_ImageLoaded(object sender, ImageLoadedEventArgs args)
{
imageEditor.ToggleCropping(new Rectangle(), true);
} .... |