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
Edit on GitHub
  1. .NET MAUI

View

PreviousVisualElementNextControls

Last updated 1 year ago

Inheritance: -> -> Xamarin.Forms documentation: View

Constructors

This control can’t be instantiated on its own. Its properties and events are inherited by its descendants.

Properties

Properties
Description

horizontalOptions(value: LayoutOptions)

Sets the LayoutOptions that define how the element gets laid horizontally in a layout cycle.

verticalOptions(value: LayoutOptions)

Sets the LayoutOptions that define how the element gets laid vertically in a layout cycle.

center(?expand: bool)

Set the LayoutOptions that defined if an element that is centered vertically and horizontally, and does expand or not. false is the default value.

centerHorizontal(?expand: bool)

Set the LayoutOptions that defined if an element that is centered horizontally and does expand or not. false is the default value.

centerVertical(?expand: bool)

Set the LayoutOptions that defined if an element that is centered vertically and does expand or not. false is the default value.

alignStartHorizontal(?expand: bool)

Set the LayoutOptions that defined if an element that is aligned to the start horizontally and does expand or not. false is the default value.

alignStartVertical(?expand: bool)

Set the LayoutOptions that defined if an element that is aligned to the start vertically and does expand or not. false is the default value.

alignEndHorizontal(?expand: bool)

Set the LayoutOptions that defined if an element that is aligned to the end horizontally and does expand or not. false is the default value.

alignEndVertical(?expand: bool)

Set the LayoutOptions that defined if an element that is aligned to the end vertically and does expand or not. false is the default value.

fillHorizontal(?expand: bool)

Set the LayoutOptions that defined if an element that is filled horizontally and does expand or not. false is the default value.

fillVertical(?expand: bool)

Set the LayoutOptions that defined if an element that is filled vertically and does expand or not. false is the default value.

margin(value: Thickness)

Sets the margin of the element.

margin(value: float)

Sets the margin of the element.

margin(left: float, top: float, right: float, bottom: float)

Sets the left, top, right and bottom margin of the element.

gestureRecognizers()

Sets the gesture recognizers of the element.

Element
NavigableElement
VisualElement
API