Fabulous API
Documentation
1.0
1.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
  • Properties
  • Events
  • Usages
Edit on GitHub
  1. Avalonia

StyledElement

PreviousAnimatableNextTransform

Last updated 1 year ago

Inheritance: AvaloniaUI documentation: StyledElement

Properties

Properties
Description

name(value: string)

Sets the Name property.

classes(value: string list)

Sets the Classes property.

classes(value: string)

Sets the Classes property.

style(fn: WidgetBuilder<'msg, #IFabAvaloniaObject> -> WidgetBuilder<'msg, #IFabAvaloniaObject>)

Sets the Style property.

contentType(value:TextInputContentType)

Sets the ContentType property.

returnKeyType(value: TextInputReturnKeyType)

Sets the ReturnKeyType property.

multiline(value: bool)

Sets the Multiline property.

lowercase(value: bool)

Sets the Lowercase property.

uppercase(value: bool)

Sets the Uppercase property.

autoCapitalization(value: bool)

Sets the AutoCapitalization property.

isSensitive(value: bool)

Sets the IsSensitive property.

styles(value: string list)

Sets the application styles

themeKey(value: string)

Sets the ThemeKey property. The ThemeKey is used to lookup the ControlTheme from the application styles that is applied to the control.

Events

Properties
Description

onAttachedToLogicalTree(fn: LogicalTreeAttachmentEventArgs -> 'msg)

Raised when the styled element is attached to a rooted logical tree.

onDetachedFromLogicalTree(fn: LogicalTreeAttachmentEventArgs -> 'msg)

Raised when the styled element is detached from a rooted logical tree.

onActualThemeVariantChanged(msg: 'msg)

Raised when the actual theme variant changes.

Usages

let textBlockStyle (this: WidgetBuilder<'msg, IFabTextBlock>) =
    this
        .verticalAlignment(VerticalAlignment.Center)
        .foreground(SolidColorBrush(Colors.Black))
            
TextBlock("Hello Wrold")
    .style(textBlockStyle)
Animatable
API