IThemeVariantHost Interface
Interface for the host element with a theme variant.
Definition
Namespace: Avalonia.Styling
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public interface IThemeVariantHost : IResourceHost,
IResourceNode
Public Interface IThemeVariantHost
Inherits IResourceHost, IResourceNode
type IThemeVariantHost =
interface
interface IResourceHost
interface IResourceNode
end
Implements | IResourceHost, IResourceNode |
Properties
ActualThemeVariant | Gets the UI theme that is currently used by the element, which might be different than the RequestedThemeVariantProperty. |
HasResources | Gets a value indicating whether the object has resources. (Inherited from IResourceNode) |
Methods
NotifyHostedResourcesChanged(ResourcesChangedEventArgs) | Notifies the resource host that one or more of its hosted resources has changed. (Inherited from IResourceHost) |
TryGetResource(Object, ThemeVariant, Object) | Tries to find a resource within the object. (Inherited from IResourceNode) |
Events
ActualThemeVariantChanged | Raised when the theme variant is changed on the element or an ancestor of the element. |
ResourcesChanged | Raised when the resources change on the element or an ancestor of the element. (Inherited from IResourceHost) |
Extension Methods
FindResource(Object) | Finds the specified resource by searching up the logical tree and then global styles. (Defined by ResourceNodeExtensions) |
FindResource(ThemeVariant, Object) | Finds the specified resource by searching up the logical tree and then global styles. (Defined by ResourceNodeExtensions) |
GetResourceObservable(Object, Func(Object, Object)) | (Defined by ResourceNodeExtensions) |
TryFindResource(Object, Object) | Tries to the specified resource by searching up the logical tree and then global styles. (Defined by ResourceNodeExtensions) |
TryFindResource(Object, ThemeVariant, Object) | Tries to the specified resource by searching up the logical tree and then global styles. (Defined by ResourceNodeExtensions) |
TryGetResource(Object, Object) | Tries to find a resource within the object. (Defined by ResourceNodeExtensions) |