StyleInclude Class

Summary

Includes a style from a URL.
graph TD Base0["object"]-->Type Interface0["ISetStyleParent"]-.->Type click Interface0 "/api/Avalonia.Styling/ISetStyleParent" Interface1["IStyle"]-.->Type click Interface1 "/api/Avalonia.Styling/IStyle" Interface2["IResourceNode"]-.->Type click Interface2 "/api/Avalonia.Controls/IResourceNode" Interface3["IResourceProvider"]-.->Type click Interface3 "/api/Avalonia.Controls/IResourceProvider" Type["StyleInclude"] class Type type-node

Syntax

public class StyleInclude : ISetStyleParent, IStyle, IResourceNode, IResourceProvider

Constructors

Name Summary
StyleInclude(Uri) Initializes a new instance of the StyleInclude class.

Events

Name Type Summary
ResourcesChanged EventHandler<ResourcesChangedEventArgs>
Raised when resources in the provider are changed.

Properties

Name Value Summary
Loaded IStyle
Gets the loaded style.
Source Uri
Gets or sets the source URL.

Methods

Name Value Summary
Attach(IStyleable, IStyleHost) bool
Attaches the style to a control if the style's selector matches.
Detach() void
TryGetResource(string, object) bool
Tries to find a resource within the provider.

Extension Methods

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