Page Constructor

Definition

初始化 Page 类的新实例。Initializes a new instance of the Page class.

public:
 Page();
public Page ();
Public Sub New ()

Remarks

如果 Page 未保持活动状态(请参阅 KeepAlive),则它需要实现一个无参数的构造函数,以便在导航到后退或前进导航历史记录中时,允许 WPFWPF 创建新的实例。If a Page is not being kept alive (see KeepAlive), it needs to implement a parameterless constructor to allow WPFWPF to create a new instance of it when navigated to in back or forward navigation history.

Applies to