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)
- C#
- VB
- F#
public class ResourceInclude : IResourceProvider,
IResourceNode, IThemeVariantProvider
Public Class ResourceInclude
Implements IResourceProvider, IResourceNode, IThemeVariantProvider
type ResourceInclude =
class
interface IResourceProvider
interface IResourceNode
interface IThemeVariantProvider
end
Inheritance | Object → ResourceInclude |
Derived | Avalonia.Markup.Xaml.Styling.MergeResourceInclude |
Implements | IResourceNode, 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
Loaded | Gets the loaded resource dictionary. |
Owner | |
Source | Gets 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) |