Interface IAvaloniaApplication
- Namespace
- CarinaStudio
- Assembly
- CarinaStudio.AppBase.Application.Avalonia.dll
IApplication which based-on Avalonia.
public interface IAvaloniaApplication : IApplication, INotifyPropertyChanged, IThreadDependent, ISynchronizable
- Inherited Members
- Extension Methods
Properties
Current
Get instance of IAvaloniaApplication of current process.
public static IAvaloniaApplication Current { get; }
Property Value
CurrentOrNull
Get instance of IAvaloniaApplication of current process, or Null if instance doesn't exist.
public static IAvaloniaApplication? CurrentOrNull { get; }
Property Value
Methods
GetResourceObservable(object, Func<object?, object?>?)
Get observable resource with given key.
IObservable<object?> GetResourceObservable(object key, Func<object?, object?>? converter = null)
Parameters
Returns
- IObservable<object>
Observable value of resource.
Remarks
This should be a thread-safe method.
TryFindResource(object, ThemeVariant?, out object?)
Try finding resource within the object.
bool TryFindResource(object key, ThemeVariant? theme, out object? value)
Parameters
key
objectThe resource key.
theme
ThemeVariantTheme used to select theme dictionary.
value
objectThe value with given key.
Returns
- bool
True if the resource found.
Remarks
This should be a thread-safe method.