Skip to content

AvaloniaActivationForViewFetcher class

Defined in

Namespace: ReactiveUI.Avalonia.Reactive Assembly: ReactiveUI.Avalonia.Reactive.dll Full name: ReactiveUI.Avalonia.Reactive.AvaloniaActivationForViewFetcher Modifiers: public

Summary

View source

Provides activation support for Avalonia views.

Applies to

net10.0, net9.0, net8.0

Class hierarchy
classDiagram
class AvaloniaActivationForViewFetcher
class IActivationForViewFetcher {
    <>
}
IActivationForViewFetcher <|.. AvaloniaActivationForViewFetcher

Implements: IActivationForViewFetcher

Remarks

This class is intended for use with Avalonia UI elements that implement the IActivatableView interface. It assigns affinity to types derived from Visual and supplies activation observables that reflect the loaded and unloaded state of controls or the attachment and detachment of visuals from the visual tree. This enables reactive activation and deactivation handling in Avalonia-based applications.

Constructors

NameSummary
.ctor

Methods

NameSummary
GetAffinityForViewDetermines the priority that the Activation View Fetcher will be able to process the view type. 0 means it cannot activate the View, value larger than 0 ...
GetActivationForViewGets a Observable which will activate the View. This is called after the GetAffinityForView method.
Inherited members