Skip to main content

InteractiveExtensions Class

Definition

Assembly:Avalonia.Base
Package:Avalonia

Provides extension methods for the Avalonia.Interactivity.Interactive interface.

public class InteractiveExtensions

Inheritance: object -> InteractiveExtensions

Methods

NameDescription
AddDisposableHandlerNo summary available.
GetInteractiveParentNo summary available.
GetObservableNo summary available.

AddDisposableHandler Method

public IDisposable AddDisposableHandler<TEventArgs>(Avalonia.Interactivity.Interactive o, Avalonia.Interactivity.RoutedEvent<TEventArgs><TEventArgs> routedEvent, EventHandler<TEventArgs> handler, Avalonia.Interactivity.RoutingStrategies routes, bool handledEventsToo)

Parameters

o Avalonia.Interactivity.Interactive

routedEvent Avalonia.Interactivity.RoutedEvent<TEventArgs><TEventArgs>

handler EventHandler<TEventArgs>

routes Avalonia.Interactivity.RoutingStrategies

handledEventsToo bool

Type Parameters

TEventArgs

Returns

IDisposable

GetInteractiveParent Method

public Avalonia.Interactivity.Interactive GetInteractiveParent(Avalonia.Interactivity.Interactive o)

Parameters

o Avalonia.Interactivity.Interactive

Returns

Avalonia.Interactivity.Interactive

GetObservable Method

public IObservable<TEventArgs> GetObservable<TEventArgs>(Avalonia.Interactivity.Interactive o, Avalonia.Interactivity.RoutedEvent<TEventArgs><TEventArgs> routedEvent, Avalonia.Interactivity.RoutingStrategies routes, bool handledEventsToo)

Parameters

o Avalonia.Interactivity.Interactive

routedEvent Avalonia.Interactivity.RoutedEvent<TEventArgs><TEventArgs>

routes Avalonia.Interactivity.RoutingStrategies

handledEventsToo bool

Type Parameters

TEventArgs

Returns

IObservable<TEventArgs>