Class SfView
Inheritance
SfView
Implements
IDrawable
IAbsoluteLayout
ILayout
IView
IElement
ITransform
IContainer
IList<IView>
ICollection<IView>
IEnumerable<IView>
ISafeAreaView
IPadding
ICrossPlatformLayout
IVisualTreeElement
Namespace: Syncfusion.Maui.Core
Assembly: Syncfusion.Maui.Core.dll
Syntax
public abstract class SfView : View, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IVisualTreeElement
Constructors
SfView()
Declaration
public SfView()
Fields
PaddingProperty
Identifies the Padding bindable property.
Declaration
public static readonly BindableProperty PaddingProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty | The identifier for Padding bindable property. |
Properties
Children
Declaration
public IList<IView> Children { get; }
Property Value
| Type |
|---|
| IList<IView> |
ClipToBounds
Declaration
public bool ClipToBounds { get; set; }
Property Value
| Type |
|---|
| bool |
Padding
Gets or sets the padding inside the view, which defines the space between the view's content and its boundaries.
Declaration
public Thickness Padding { get; set; }
Property Value
| Type |
|---|
| Thickness |
Methods
ArrangeContent(Rect)
Declaration
protected virtual Size ArrangeContent(Rect bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| Rect | bounds |
Returns
| Type |
|---|
| Size |
ArrangeOverride(Rect)
Declaration
protected override sealed Size ArrangeOverride(Rect bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| Rect | bounds |
Returns
| Type |
|---|
| Size |
GetSemanticsNodesCore(double, double)
Return the semantics nodes for the view.
Declaration
protected virtual List<SemanticsNode>? GetSemanticsNodesCore(double width, double height)
Parameters
| Type | Name | Description |
|---|---|---|
| double | width | The view width. |
| double | height | The view height. |
Returns
| Type | Description |
|---|---|
| List<SemanticsNode> | The semantics nodes of the view. |
MeasureContent(double, double)
Declaration
protected virtual Size MeasureContent(double widthConstraint, double heightConstraint)
Parameters
| Type | Name | Description |
|---|---|---|
| double | widthConstraint | |
| double | heightConstraint |
Returns
| Type |
|---|
| Size |
MeasureOverride(double, double)
Declaration
protected override sealed Size MeasureOverride(double widthConstraint, double heightConstraint)
Parameters
| Type | Name | Description |
|---|---|---|
| double | widthConstraint | |
| double | heightConstraint |
Returns
| Type |
|---|
| Size |
OnBindingContextChanged()
Declaration
protected override void OnBindingContextChanged()
OnDraw(ICanvas, RectF)
Declaration
protected virtual void OnDraw(ICanvas canvas, RectF dirtyRect)
Parameters
| Type | Name | Description |
|---|---|---|
| ICanvas | canvas | |
| RectF | dirtyRect |
OnHandlerChanged()
Declaration
protected override void OnHandlerChanged()
Implements
Microsoft.Maui.Graphics.IDrawable
Microsoft.Maui.IAbsoluteLayout
Microsoft.Maui.ILayout
Microsoft.Maui.IView
Microsoft.Maui.IElement
Microsoft.Maui.ITransform
Microsoft.Maui.IContainer
Microsoft.Maui.ISafeAreaView
Microsoft.Maui.IPadding
Microsoft.Maui.ICrossPlatformLayout
Microsoft.Maui.IVisualTreeElement