Note: This document is auto-generated by
scripts/generate_control_reference_docs.py. Do not edit manually.
Avalonia.Controls.Shapes.ShapeAvalonia.Controls.ShapesAvalonia.Controlssrc/Avalonia.Controls/Shapes/Shape.csControlabstract controlpublic static readonly StyledProperty<IBrush?> FillProperty = AvaloniaProperty.Register<Shape, IBrush?>(nameof(Fill));public static readonly StyledProperty<Stretch> StretchProperty = AvaloniaProperty.Register<Shape, Stretch>(nameof(Stretch));public static readonly StyledProperty<IBrush?> StrokeProperty = AvaloniaProperty.Register<Shape, IBrush?>(nameof(Stroke));public static readonly StyledProperty<AvaloniaList<double>?> StrokeDashArrayProperty = AvaloniaProperty.Register<Shape, AvaloniaList<double>?>(nameof(StrokeDashArray));public static readonly StyledProperty<double> StrokeDashOffsetProperty = AvaloniaProperty.Register<Shape, double>(nameof(StrokeDashOffset));public static readonly StyledProperty<double> StrokeThicknessProperty = AvaloniaProperty.Register<Shape, double>(nameof(StrokeThickness));public static readonly StyledProperty<PenLineCap> StrokeLineCapProperty = AvaloniaProperty.Register<Shape, PenLineCap>(nameof(StrokeLineCap), PenLineCap.Flat);public static readonly StyledProperty<PenLineJoin> StrokeJoinProperty = AvaloniaProperty.Register<Shape, PenLineJoin>(nameof(StrokeJoin), PenLineJoin.Miter);public static readonly StyledProperty<double> StrokeMiterLimitProperty = AvaloniaProperty.Register<Shape, double>(nameof(StrokeMiterLimit), 10.0);public Geometry? DefiningGeometry {public Geometry? RenderedGeometry {public IBrush? Fill {public Stretch Stretch {public IBrush? Stroke {public AvaloniaList<double>? StrokeDashArray {public double StrokeDashOffset {<!-- Requires xmlns:local="using:MyApp.Controls" -->
<!-- Shape is abstract; use a concrete derived type -->
<local:MyShape x:Name="SampleShape" />
using Avalonia.Controls.Shapes;
public sealed class MyShape : Shape
{
}
var control = new MyShape();