共用方式為


DesignMode Class

Definition

Static class that developers can use to determine if the application is running in a previewer.

public ref class DesignMode abstract sealed
public static class DesignMode
type DesignMode = class
Public Class DesignMode
Inheritance
DesignMode

Remarks

This class is managed by the Microsoft.Maui.Controls platform to inform the developer when the application is being run in a previewer.

Properties

IsDesignModeEnabled

Indicates whether the application is being run in a previewer.

Applies to