Skip to main content

GetResourceObservable(IResourceProvider, Object, ThemeVariant, Func<Object, Object>) Method

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static IObservable<Object?> GetResourceObservable(
this IResourceProvider resourceProvider,
Object key,
ThemeVariant? defaultThemeVariant,
Func<Object?, Object?>? converter = null
)

Parameters

  IResourceProvider
 
  Object
 
  ThemeVariant
 
  Func(Object, Object)  (Optional)
 

Return Value

IObservable(Object)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IResourceProvider. 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).

See Also

Reference

ResourceNodeExtensions Class
GetResourceObservable Overload
Avalonia.Controls Namespace