InteractiveExtensionsGetObservableTEventArgs Method
Namespace: Avalonia.InteractivityAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static IObservable<TEventArgs> GetObservable<TEventArgs>(
this Interactive o,
RoutedEvent<TEventArgs> routedEvent,
RoutingStrategies routes = RoutingStrategies.Direct|RoutingStrategies.Bubble,
bool handledEventsToo = false
)
where TEventArgs : RoutedEventArgs
<ExtensionAttribute>
Public Shared Function GetObservable(Of TEventArgs As RoutedEventArgs) (
o As Interactive,
routedEvent As RoutedEvent(Of TEventArgs),
Optional routes As RoutingStrategies = RoutingStrategies.Direct Or RoutingStrategies.Bubble,
Optional handledEventsToo As Boolean = false
) As IObservable(Of TEventArgs)
[<ExtensionAttribute>]
static member GetObservable :
o : Interactive *
routedEvent : RoutedEvent<'TEventArgs> *
?routes : RoutingStrategies *
?handledEventsToo : bool
(* Defaults:
let _routes = defaultArg routes RoutingStrategies.Direct|RoutingStrategies.Bubble
let _handledEventsToo = defaultArg handledEventsToo false
*)
-> IObservable<'TEventArgs> when 'TEventArgs : RoutedEventArgs
- o Interactive
- The object to listen for events on.
- routedEvent RoutedEventTEventArgs
- The routed event.
- routes RoutingStrategies (Optional)
- The routing strategies to listen to.
- handledEventsToo Boolean (Optional)
- Whether handled events should also be listened for.
- TEventArgs
IObservableTEventArgs
An observable which fires each time the event is raised.
In Visual Basic and C#, you can call this method as an instance method on any object of type
Interactive. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).