ISetResourceParent Interface

Summary

Defines an interface through which an IResourceNode's parent can be set.
graph BT Type-.->Interface0["IResourceNode"] click Interface0 "/api/Avalonia.Controls/IResourceNode" Type-.->Interface1["IResourceProvider"] click Interface1 "/api/Avalonia.Controls/IResourceProvider" Type["ISetResourceParent"] class Type type-node Implementing0["Styles"]-.->Type click Implementing0 "/api/Avalonia.Styling/Styles" Implementing1["ResourceInclude"]-.->Type click Implementing1 "/api/Avalonia.Markup.Xaml.MarkupExtensions/ResourceInclude" Implementing2["ResourceDictionary"]-.->Type click Implementing2 "/api/Avalonia.Controls/ResourceDictionary" Implementing3["Style"]-.->Type click Implementing3 "/api/Avalonia.Styling/Style" Implementing4["StyleInclude"]-.->Type click Implementing4 "/api/Avalonia.Markup.Xaml.Styling/StyleInclude" Implementing5["DefaultTheme"]-.->Type click Implementing5 "/api/Avalonia.Themes.Default/DefaultTheme"

Syntax

public interface ISetResourceParent : IResourceNode, IResourceProvider

Remarks

You should not usually need to use this interface - it is for internal use only.

Methods

Name Value Summary
ParentResourcesChanged(ResourcesChangedEventArgs) void
Notifies the resource node that a change has been made to the resources in its parent.
SetParent(IResourceNode) void
Sets the resource parent.

Extension Methods

Name Value Summary
FindResource(object) object
Finds the specified resource by searching up the logical tree and then global styles.
GetResourceObservable(object) IObservable<object>
TryFindResource(object, object) bool
Tries to the specified resource by searching up the logical tree and then global styles.