共用方式為


DesignMode Class

Definition

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

public static class DesignMode
type DesignMode = class
Inheritance
System.Object
DesignMode

Remarks

This class is managed by the Xamarin.Forms 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