Style.IsTemplated 属性

定义

获取一个值,该值指示 Style 对象是否有活动的模板集。Gets a value indicating whether a Style object has an active template set. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 property bool IsTemplated { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool IsTemplated { get; }
member this.IsTemplated : bool
Public ReadOnly Property IsTemplated As Boolean

属性值

如果样式有活动模板集,则为 true;否则为 falsetrue if the style has an active template set; otherwise, false.

属性

注解

若要将其视为模板化,对象必须具有已成功为目标设备计算 <Choice> 元素的<有 >元素。To be considered templated, an object must have a <DeviceSpecific> element with a <Choice> element successfully evaluated for the target device. 所选选项必须已定义模板。The selected choice must have templates defined.

适用于

另请参阅