Class ImageEditorToolbarSettings
Represents the ImageEditorToolbarSettings class.
Inheritance
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.
<imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
<imageEditor:SfImageEditor.ToolbarSettings>
<imageEditor:ImageEditorToolbarSettings Background = "Green"/>
</imageEditor:SfImageEditor.ToolbarSettings>
</imageEditor:SfImageEditor>
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.
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.
<imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
<imageEditor:SfImageEditor.ToolbarSettings>
<imageEditor:ImageEditorToolbarSettings CropTypes="Circle,Square"/>
</imageEditor:SfImageEditor.ToolbarSettings>
</imageEditor:SfImageEditor>
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.
<imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
<imageEditor:SfImageEditor.ToolbarSettings>
<imageEditor:ImageEditorToolbarSettings DisabledColor="Black"/>
</imageEditor:SfImageEditor.ToolbarSettings>
</imageEditor:SfImageEditor>
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.
<imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
<imageEditor:SfImageEditor.ToolbarSettings>
<imageEditor:ImageEditorToolbarSettings EffectTypes="Brightness,Contrast,Hue"/>
</imageEditor:SfImageEditor.ToolbarSettings>
</imageEditor:SfImageEditor>
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.
<imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
<imageEditor:SfImageEditor.ToolbarSettings>
<imageEditor:ImageEditorToolbarSettings IconColor="Red"/>
</imageEditor:SfImageEditor.ToolbarSettings>
</imageEditor:SfImageEditor>
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.
<imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
<imageEditor:SfImageEditor.ToolbarSettings>
<imageEditor:ImageEditorToolbarSettings IconSize="50,50"/>
</imageEditor:SfImageEditor.ToolbarSettings>
</imageEditor:SfImageEditor>
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.
<imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
<imageEditor:SfImageEditor.ToolbarSettings>
<imageEditor:ImageEditorToolbarSettings Shapes="Rectangle,Circle,Line"/>
</imageEditor:SfImageEditor.ToolbarSettings>
</imageEditor:SfImageEditor>
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.
<imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
<imageEditor:SfImageEditor.ToolbarSettings>
<imageEditor:ImageEditorToolbarSettings ShowTooltip="false"/>
</imageEditor:SfImageEditor.ToolbarSettings>
</imageEditor:SfImageEditor>
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.
<imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
<imageEditor:SfImageEditor.ToolbarSettings>
<imageEditor:ImageEditorToolbarSettings Stroke="Red"/>
</imageEditor:SfImageEditor.ToolbarSettings>
</imageEditor:SfImageEditor>
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.
<imageEditor:SfImageEditor x:Name="imageEditor" Source="syncfusion.png">
<imageEditor:SfImageEditor.ToolbarSettings>
<imageEditor:ImageEditorToolbarSettings TextColor="Red"/>
</imageEditor:SfImageEditor.ToolbarSettings>
</imageEditor:SfImageEditor>
TextStyle
Gets or sets the text style for toolbar item text.
Declaration
public ImageEditorTextStyle TextStyle { get; set; }
Property Value
Type |
---|
ImageEditorTextStyle |