Skip to main content

StyleInclude Class

Includes a style from a URL.

Definition

Namespace: Avalonia.Markup.Xaml.Styling
Assembly: Avalonia.Markup.Xaml (in Avalonia.Markup.Xaml.dll)

public class StyleInclude : IStyle, 
IResourceNode, IResourceProvider
View Source
InheritanceObject → StyleInclude
ImplementsIResourceNode, IResourceProvider, IStyle

Remarks

If used from the XAML code, it is replaced with direct style reference. When used in runtime, this type might be unsafe with trimming and AOT.

Constructors

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

Properties

LoadedGets the loaded style.
Owner 
SourceGets or sets the source URL.

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
ToString()Returns a string that represents the current object.
(Inherited from Object)
TryGetResource(Object, ThemeVariant, Object) 

Events

OwnerChanged 

Extension Methods

GetResourceObservable(Object, Func(Object, Object))
(Defined by ResourceNodeExtensions)
GetResourceObservable(Object, ThemeVariant, Func(Object, Object))
(Defined by ResourceNodeExtensions)

See Also

Reference

Avalonia.Markup.Xaml.Styling Namespace