Fabulous API
Documentation
2.0
2.0
  • Welcome
  • Xamarin.Forms
    • AnyView
    • Application
    • Element
    • NavigableElement
    • VisualElement
    • View
    • Controls
      • ActivityIndicator
      • BoxView
      • Button
      • CheckBox
      • DatePicker
      • Editor
      • Entry
      • FormattedLabel
      • ImageButton
      • Image
      • IndicatorView
      • InputView
      • Label
      • Picker
      • ProgressBar
      • RadioButton
      • SearchBar
      • Slider
      • Span
      • Stepper
      • Switch
      • TimePicker
      • WebView
    • Collections
      • CarouselView
      • CollectionView
      • ItemsView
      • ListView
    • Layouts
      • Layout
      • TemplatedView
  • .NET MAUI
    • AnyView
    • Application
    • Element
    • NavigableElement
    • VisualElement
    • View
    • Controls
      • ActivityIndicator
      • BoxView
      • Button
      • CheckBox
      • DatePicker
      • Editor
      • Entry
      • FormattedLabel
      • ImageButton
      • Image
      • IndicatorView
      • InputView
      • Label
      • Picker
      • ProgressBar
      • RadioButton
      • SearchBar
      • Slider
      • Span
      • Stepper
      • Switch
      • TimePicker
      • WebView
    • Collections
      • CarouselView
      • CollectionView
      • ItemsView
      • ListView
    • Layouts
      • Layout
      • TemplatedView
  • Avalonia
    • AnyView
    • Application
    • RenderOptions
    • Animatable
    • StyledElement
    • Transform
    • Visual
    • Layoutable
    • InputElement
    • DragDrop
    • FlyoutBase
    • PopupFlyoutBase
    • Control
    • Decorator
    • TemplatedControl
    • ContentControl
    • Spinner
    • TopLevel
    • TextElement
    • ItemsControl
    • SelectingItemsControl
    • MenuBase
    • WindowBase
    • Styling
      • KeyFrame
      • Animation
      • Transition
      • Style
    • Media
      • Transforms
        • Transform
        • MatrixTransform
        • SkewTransform
        • RotateTransform
        • TranslateTransform
        • ScaleTransform
        • Rotate3DTransform
        • TransformGroup
      • Brushes
        • Brush
        • TileBrush
        • SolidColorBrush
        • VisualBrush
        • ImageBrush
        • DrawingBrush
        • GradientStop
        • GradientBrush
        • ConicGradientBrush
        • LinearGradientBrush
        • RadialGradientBrush
      • PathSegments
        • PathSegment
        • ArcSegment
        • BezierSegment
        • PolyLineSegment
        • QuadraticBezierSegment
        • PathFigure
      • Geometries
        • Geometry
        • LineGeometry
        • EllipseGeometry
        • RectangleGeometry
        • PolylineGeometry
        • PathGeometry
        • CombinedGeometry
        • GeometryGroup
      • DashStyle
      • Pen
      • Drawing
      • Effects
Powered by GitBook
On this page
  • Constructors
  • Properties
  • Usages
Edit on GitHub
  1. Avalonia
  2. Media
  3. Brushes

RadialGradientBrush

PreviousLinearGradientBrushNextPathSegments

Last updated 1 year ago

Inheritance: AvaloniaUI documentation: RadialGradientBrush

Constructors

Constructors
Description

RadialGradientBrush(center: RelativePoint)

Creates a RadialGradientBrush widget.

RadialGradientBrush(center: Point, unit: RelativeUnit)

Creates a RadialGradientBrush widget.

RadialGradientBrush(center: RelativePoint, origin: RelativePoint)

Creates a RadialGradientBrush widget.

RadialGradientBrush(center: Point, origin: Point, unit: RelativeUnit)

Creates a RadialGradientBrush widget.

RadialGradientBrush()

Creates a RadialGradientBrush widget.

Properties

Properties
Description

radius(value: float)

Sets the Radius property.

reference(value: ViewRef)

Link a ViewRef to access the direct RadialGradientBrush control instance.

Usages

RadialGradientBrush(Point(0., 0.), Point(0., 0.), RelativeUnit.Absolute) {
    GradientStop(Colors.Black, 0.)
    GradientStop(Colors.Orange, 1.0)
}

Get access to the underlying RadialGradientBrush

let brushesRef = ViewRef<RadialGradientBrush>()

(RadialGradientBrush(Point(0., 0.), Point(0., 0.), RelativeUnit.Absolute) {
    GradientStop(Colors.Black, 0.)
    GradientStop(Colors.Orange, 1.0)
})
    .reference(brushesRef)
GradientBrush
API