IResourceHost Interface
Not client implementable.
Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.
Represents an element which hosts resources.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
[NotClientImplementableAttribute]
public interface IResourceHost : IResourceNode
<NotClientImplementableAttribute>
Public Interface IResourceHost
Inherits IResourceNode
[<NotClientImplementableAttribute>]
type IResourceHost =
interface
interface IResourceNode
end
| Implements | IResourceNode |
Remarks
This interface is implemented by StyledElement and Application.
Properties
| 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. |
| TryGetResource(Object, ThemeVariant, Object) | Tries to find a resource within the object. (Inherited from IResourceNode) |
Events
| ResourcesChanged | Raised when the resources change on the element or an ancestor of the element. |
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) |