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
  • Events
  • Usages
Edit on GitHub
  1. Avalonia

Application

Encapsulates a Avalonia application.

PreviousAnyViewNextRenderOptions

Last updated 1 year ago

Inheritance: AvaloniaUI documentation: Application

Constructors

Constructors
Description

DesktopApplication(window: WidgetBuilder<'msg, #IFabWindow>)

Creates a DesktopApplication widget with a content widget.

SingleViewApplication(view: WidgetBuilder<'msg, #IFabControl>)

Creates a SingleViewApplication widget with a content widget.

Properties

Properties
Description

name(value: string)

Sets the applications name.

debugOverlays(value:RendererDebugOverlays)

Sets the application debug overlays.

isSystemBarVisible(value: bool)

Sets the application system bar visibility.

displayEdgeToEdge(value: bool)

Sets the application display edge to edge.

systemBarColor(value: Color)

Sets the application system bar color.

reference(value: ViewRef<FabApplication>)

Sets a ViewRef instance to retrieve the Avalonia.Application instance associated to this widget

Events

Properties
Description

onThemeVariantChanged(value: ThemeVariant, fn: ThemeVariant -> 'msg)

Raised when the theme variant changes and

sets the application theme variant.

onThemeVariantChanged(fn: ThemeVariant -> 'msg)

Raised when the application theme variant changed event.

onResourcesChanged(fn: ResourcesChangedEventArgs -> 'msg)

Raised when the resources change.

onUrlsOpened(fn: UrlOpenedEventArgs -> 'msg)

Raised when the application receives urls to open.

onColorValuesChanged(fn: PlatformColorValues -> 'msg)

Raised when current system color values are changed. Including changing of a dark mode and accent colors.

onSafeAreaChanged(fn: Platform.SafeAreaChangedArgs -> 'msg)

Raised when the safe area is changed.

Usages

DesktopApplication(
    Window(
        VStack() {
            TextBlock("Hello World!")
        }
    )
)

SingleViewApplication(
    VStack() {
        TextBlock("Hello World!")
    }
)

Get access to the underlying Application

let applicationRef = ViewRef<FabApplication>()

DesktopApplication(
    Window(
        VStack() {
            TextBlock("Hello World!")
        }
    )
).reference(applicationRef)

SingleViewApplication(
    VStack() {
        TextBlock("Hello World!")
    }
).reference(applicationRef)
AvaloniaObject
API