XamlObjectReaderSettings.RequireExplicitContentVisibility 屬性

定義

取得或設定值,這個值決定針對內容 (Context) 使用相關聯 XamlObjectReader 的寫入器,是否應該明確使用設計工具設定來寫入內容 (Content)。

C#
public bool RequireExplicitContentVisibility { get; set; }

屬性值

true 表示在 IsWritePublic 報告 false 的情況下,使用此內容的寫入器應該使用設計工具設定來寫入任何輸出。如果應該忽略設計工具設定,則為 false

備註

此設定會在內部查詢。 它會影響傳遞至任何 XamlWriter 之內容的 XamlObjectReader 下列行為:

適用於

產品 版本
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10