Table of Contents

Class CrystalOptions

Namespace
Crystal.Avalonia
Assembly
Crystal.Avalonia.dll

Configuration options for the Crystal.Avalonia framework. Registered as a singleton in DI and available via Options. Configure by overriding ConfigureOptions(CrystalOptions).

public class CrystalOptions
Inheritance
CrystalOptions
Inherited Members

Properties

EnableViewLocator

Gets or sets whether ViewModel-first view location is enabled. When enabled, a ViewLocator is added to Application.DataTemplates so a ContentControl can display a registered View for a ViewModel. Defaults to true.

public bool EnableViewLocator { get; set; }

Property Value

bool

Remarks

This option does not control AutoWireViewModelProperty. View-first auto-wiring via the attached property always works when a mapping is registered.