ITemplateEditingService 接口

定义

注意

Use of this type is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202

提供在设计时编辑控件模板的服务。Provides services for editing control templates at design time.

public interface class ITemplateEditingService
public interface ITemplateEditingService
[System.Obsolete("Use of this type is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")]
public interface ITemplateEditingService
type ITemplateEditingService = interface
[<System.Obsolete("Use of this type is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")>]
type ITemplateEditingService = interface
Public Interface ITemplateEditingService
派生
属性

注解

备注

ITemplateEditingService 接口已过时。The ITemplateEditingService interface is obsolete. 通过 TemplateGroups 控件设计器的属性公开模板。Expose templates through the TemplateGroups property of a control designer. 设计宿主 TemplatedEditableDesignerRegion 为控件设计器的每个定义都创建一个 TemplateGroupThe design host creates a TemplatedEditableDesignerRegion for each TemplateGroup defined for a control designer.

属性

SupportsNestedTemplateEditing

获取一个值,该值指示服务是否支持嵌套模板编辑。Gets a value that indicates whether the service supports nested template editing.

方法

CreateFrame(TemplatedControlDesigner, String, String[])

使用指定的名称和模板为指定的模板化控件设计器创建新的模板编辑框。Creates a new template editing frame for the specified templated control designer, using the specified name and templates.

CreateFrame(TemplatedControlDesigner, String, String[], Style, Style[])

使用指定的名称、模板名称、控件样式和模板样式为指定的 TemplatedControlDesigner 创建新的模板编辑框。Creates a new template editing frame for the specified TemplatedControlDesigner, using the specified name, template names, control style, and template styles.

GetContainingTemplateName(Control)

获取父模板的名称。Gets the name of the parent template.

适用于

另请参阅