Table of Contents

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

IAvaloniaApplication

CurrentOrNull

Get instance of IAvaloniaApplication of current process, or Null if instance doesn't exist.

public static IAvaloniaApplication? CurrentOrNull { get; }

Property Value

IAvaloniaApplication

Methods

GetResourceObservable(object, Func<object?, object?>?)

Get observable resource with given key.

IObservable<object?> GetResourceObservable(object key, Func<object?, object?>? converter = null)

Parameters

key object

Key.

converter Func<object, object>

Value converter.

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 object

The resource key.

theme ThemeVariant

Theme used to select theme dictionary.

value object

The value with given key.

Returns

bool

True if the resource found.

Remarks

This should be a thread-safe method.