Avalonia UI 中的 DesignerProperties.GetIsInDesignMode?

Eti*_*and 5 .net c# avaloniaui

在WPF中,您可以使用以下命令检测它是否在设计模式下显示

DesignerProperties.GetIsInDesignMode
Run Code Online (Sandbox Code Playgroud)

Avalonia UI 中的等效项是什么

rad*_*wik 5

在 阿瓦隆尼亚 相当于Avalonia.Controls.Design.IsDesignMode