In WPF, you can detect whether it is showing in design mode using
DesignerProperties.GetIsInDesignMode
What's the equivalent in Avalonia UI
CodePudding user response:
In Avalonia the equivalent is Avalonia.Controls.Design.IsDesignMode
In WPF, you can detect whether it is showing in design mode using
DesignerProperties.GetIsInDesignMode
What's the equivalent in Avalonia UI
CodePudding user response:
In Avalonia the equivalent is Avalonia.Controls.Design.IsDesignMode