Skip to main content

ResourceInclude Class

Loads a resource dictionary from a specified URL.

Definition

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

public class ResourceInclude : IResourceProvider, 
IResourceNode, IThemeVariantProvider
View Source
InheritanceObject → ResourceInclude
DerivedAvalonia.Markup.Xaml.Styling.MergeResourceInclude
ImplementsIResourceNode, IResourceProvider, IThemeVariantProvider

Remarks

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

Constructors

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

Properties

LoadedGets the loaded resource dictionary.
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