menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ImageEditorToolbarSettings - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ImageEditorToolbarSettings

    Represents the ImageEditorToolbarSettings class.

    Inheritance
    System.Object
    ImageEditorToolbarSettings
    Namespace: Syncfusion.Maui.ImageEditor
    Assembly: Syncfusion.Maui.ImageEditor.dll
    Syntax
    public class ImageEditorToolbarSettings : Element, IThemeElement

    Constructors

    ImageEditorToolbarSettings()

    Initializes a new instance of the ImageEditorToolbarSettings class.

    Declaration
    public ImageEditorToolbarSettings()

    Fields

    BackgroundProperty

    Identifies the Background dependency property.

    Declaration
    public static readonly BindableProperty BackgroundProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for Background dependency property.

    ColorPaletteProperty

    Identifies the ColorPalette dependency property.

    Declaration
    public static readonly BindableProperty ColorPaletteProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for ColorPalette dependency property.

    CropTypesProperty

    Identifies the CropTypes dependency property.

    Declaration
    public static readonly BindableProperty CropTypesProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for CropTypes dependency property.

    DisabledColorProperty

    Identifies the DisabledColor dependency property.

    Declaration
    public static readonly BindableProperty DisabledColorProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for DisabledColor dependency property.

    EffectsTypesProperty

    Identifies the EffectTypes dependency property.

    Declaration
    public static readonly BindableProperty EffectsTypesProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for EffectTypes dependency property.

    IconColorProperty

    Identifies the IconColor dependency property.

    Declaration
    public static readonly BindableProperty IconColorProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for IconColor dependency property.

    IconSizeProperty

    Identifies the IconSize dependency property.

    Declaration
    public static readonly BindableProperty IconSizeProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for IconSize dependency property.

    ShapesProperty

    Identifies the Shapes dependency property.

    Declaration
    public static readonly BindableProperty ShapesProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for Shapes dependency property.

    ShowTooltipProperty

    Identifies the ShowTooltip dependency property.

    Declaration
    public static readonly BindableProperty ShowTooltipProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for ShowTooltip dependency property.

    StrokeProperty

    Identifies the Stroke dependency property.

    Declaration
    public static readonly BindableProperty StrokeProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for Stroke dependency property.

    TextColorProperty

    Identifies the TextColor dependency property.

    Declaration
    public static readonly BindableProperty TextColorProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for TextColor dependency property.

    TextStyleProperty

    Identifies the TextStyle dependency property.

    Declaration
    public static readonly BindableProperty TextStyleProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for TextStyle dependency property.

    Properties

    Background

    Gets or sets the toolbar background color.

    Declaration
    public Brush Background { get; set; }
    Property Value
    Type
    Microsoft.Maui.Controls.Brush
    Examples

    The below examples shows, how to change the toolbar background.

    • XAML
    • C#
    <imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
       <imageEditor:SfImageEditor.ToolbarSettings>
            <imageEditor:ImageEditorToolbarSettings Background = "Green"/>
        </imageEditor:SfImageEditor.ToolbarSettings>
    </imageEditor:SfImageEditor>
    this.imageEditor.ToolbarSettings.Background = Brush.Green;

    ColorPalette

    Gets or sets the colors to be displayed on shape, text and pen color palettes.

    Declaration
    public List<Color> ColorPalette { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<Microsoft.Maui.Graphics.Color>
    Examples

    The below example shows, how to set the colors of the color palette.

    • C#
    this.imageEditor.ToolbarSettings.ColorPalette = new List<Color> { Colors.Blue, Colors.Violet, Colors.LightBlue };

    CropTypes

    Gets or sets the crop types that should be displayed on the crop toolbar.

    Declaration
    public ImageCropType CropTypes { get; set; }
    Property Value
    Type
    ImageCropType
    Examples

    The below examples shows, how to set the crop types.

    • XAML
    • C#
    <imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
       <imageEditor:SfImageEditor.ToolbarSettings>
            <imageEditor:ImageEditorToolbarSettings CropTypes="Circle,Square"/>
        </imageEditor:SfImageEditor.ToolbarSettings>
    </imageEditor:SfImageEditor>
    this.imageEditor.ToolbarSettings.CropTypes = ImageCropType.Circle | ImageCropType.Square;

    DisabledColor

    Gets or sets the toolbar item disabled color.

    Declaration
    public Color DisabledColor { get; set; }
    Property Value
    Type
    Microsoft.Maui.Graphics.Color
    Examples

    The below examples shows, how to set the disabled icon color.

    • XAML
    • C#
    <imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
       <imageEditor:SfImageEditor.ToolbarSettings>
            <imageEditor:ImageEditorToolbarSettings DisabledColor="Black"/>
        </imageEditor:SfImageEditor.ToolbarSettings>
    </imageEditor:SfImageEditor>
    this.imageEditor.ToolbarSettings.DisabledColor = Colors.Black;

    EffectTypes

    Gets or sets the image effects that should be displayed on the effects toolbar.

    Declaration
    public ImageEffect EffectTypes { get; set; }
    Property Value
    Type
    ImageEffect
    Examples

    The below examples shows, how to set the effect types.

    • XAML
    • C#
    <imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
       <imageEditor:SfImageEditor.ToolbarSettings>
            <imageEditor:ImageEditorToolbarSettings EffectTypes="Brightness,Contrast,Hue"/>
        </imageEditor:SfImageEditor.ToolbarSettings>
    </imageEditor:SfImageEditor>
    this.imageEditor.ToolbarSettings.EffectTypes = ImageEffect.Brightness | ImageEffect.Contrast | ImageEffect.Hue;

    IconColor

    Gets or sets the toolbar icon color.

    Declaration
    public Color IconColor { get; set; }
    Property Value
    Type
    Microsoft.Maui.Graphics.Color
    Examples

    The below examples shows, how to change the toolbar icon color.

    • XAML
    • C#
    <imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
       <imageEditor:SfImageEditor.ToolbarSettings>
            <imageEditor:ImageEditorToolbarSettings IconColor="Red"/>
        </imageEditor:SfImageEditor.ToolbarSettings>
    </imageEditor:SfImageEditor>
    this.imageEditor.ToolbarSettings.IconColor = Colors.Red;

    IconSize

    Gets or sets the toolbar icon size.

    Declaration
    public Size IconSize { get; set; }
    Property Value
    Type
    Microsoft.Maui.Graphics.Size
    Examples

    The below examples shows, how to change the toolbar icon size.

    • XAML
    • C#
    <imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
       <imageEditor:SfImageEditor.ToolbarSettings>
            <imageEditor:ImageEditorToolbarSettings IconSize="50,50"/>
        </imageEditor:SfImageEditor.ToolbarSettings>
    </imageEditor:SfImageEditor>
    this.imageEditor.ToolbarSettings.IconSize = new Size(50, 50);

    Shapes

    Gets or sets the shapes that should be displayed on the shape toolbar.

    Declaration
    public AnnotationShape Shapes { get; set; }
    Property Value
    Type
    AnnotationShape
    Examples

    The below examples shows, how to set the shapes.

    • XAML
    • C#
    <imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
       <imageEditor:SfImageEditor.ToolbarSettings>
            <imageEditor:ImageEditorToolbarSettings Shapes="Rectangle,Circle,Line"/>
        </imageEditor:SfImageEditor.ToolbarSettings>
    </imageEditor:SfImageEditor>
    this.imageEditor.ToolbarSettings.Shapes = AnnotationShape.Rectangle | AnnotationShape.Circle | AnnotationShape.Line;

    ShowTooltip

    Gets or sets a value indicating whether the tooltips should be displayed for toolbars.

    Declaration
    public bool ShowTooltip { get; set; }
    Property Value
    Type
    System.Boolean
    Examples

    The below examples shows, how to set the show tooltip property.

    • XAML
    • C#
    <imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
       <imageEditor:SfImageEditor.ToolbarSettings>
            <imageEditor:ImageEditorToolbarSettings ShowTooltip="false"/>
        </imageEditor:SfImageEditor.ToolbarSettings>
    </imageEditor:SfImageEditor>
    this.imageEditor.ToolbarSettings.ShowTooltip = false;

    Stroke

    Gets or sets the toolbar stroke.

    Declaration
    public Brush Stroke { get; set; }
    Property Value
    Type
    Microsoft.Maui.Controls.Brush
    Examples

    The below examples shows, how to change the toolbar stroke.

    • XAML
    • C#
    <imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
       <imageEditor:SfImageEditor.ToolbarSettings>
            <imageEditor:ImageEditorToolbarSettings Stroke="Red"/>
        </imageEditor:SfImageEditor.ToolbarSettings>
    </imageEditor:SfImageEditor>
    this.imageEditor.ToolbarSettings.Stroke = Brush.Red;

    TextColor

    Gets or sets the toolbar text color.

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type
    Microsoft.Maui.Graphics.Color
    Examples

    The below examples shows, how to change the toolbar text color.

    • XAML
    • C#
    <imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
       <imageEditor:SfImageEditor.ToolbarSettings>
            <imageEditor:ImageEditorToolbarSettings TextColor="Red"/>
        </imageEditor:SfImageEditor.ToolbarSettings>
    </imageEditor:SfImageEditor>
    this.imageEditor.ToolbarSettings.TextColor = Colors.Red;

    TextStyle

    Gets or sets the text style for toolbar item text.

    Declaration
    public ImageEditorTextStyle TextStyle { get; set; }
    Property Value
    Type
    ImageEditorTextStyle
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved