PanelContainerDesigner.UsePreviewControl Propriedade

Definição

Obtém um valor que indica se o designer deve usar uma cópia temporária em vez do controle real que está associado ao designer para gerar a marcação de tempo de design.Gets a value indicating whether the designer should use a temporary copy rather than the actual control that is associated with the designer to generate the design-time markup.

protected:
 virtual property bool UsePreviewControl { bool get(); };
protected override bool UsePreviewControl { get; }
member this.UsePreviewControl : bool
Protected Overrides ReadOnly Property UsePreviewControl As Boolean

Valor da propriedade

Boolean

Sempre true.Always true.

Comentários

Como a UsePreviewControl propriedade é sempre true , o designer usa um View controle que contém uma cópia do controle associado Panel para gerar a marcação de tempo de design.Because the UsePreviewControl property is always true, the designer uses a View control that contains a copy of the associated Panel control to generate the design-time markup. O View controle não afeta nenhuma persistência para o Panel .The View control does not affect any persistence for the Panel.

Se a UsePreviewControl propriedade tiver sido substituída para retornar false , o designer usará a Panel própria associada para gerar a marcação de tempo de design e as alterações de tempo de design para o controle persistirão na fonte de marcação de página.If the UsePreviewControl property has been overridden to return false, the designer will use the associated Panel itself to generate the design-time markup, and design-time changes to the control will persist to the page markup source.

Notas aos Herdeiros

Você pode substituir a UsePreviewControl propriedade para retornar false ou para determinar seu valor com base em se o controle está marcado com um atributo de nível de classe SupportsPreviewControlAttribute .You can override the UsePreviewControl property to return false or to determine its value based on whether the control is marked with a class-level SupportsPreviewControlAttribute attribute. Se o UsePreviewControl não for substituído, o Panel controle ignorará o SupportsPreviewControlAttribute atributo.If the UsePreviewControl is not overridden, the Panel control ignores the SupportsPreviewControlAttribute attribute.

Aplica-se a

Confira também