EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

UIElement.RenderSize Property

Gets (or sets, but see Remarks) the final render size of this element.

Namespace: System.Windows
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public Size RenderSize { get; set; }
/** @property */
public Size get_RenderSize ()

/** @property */
public void set_RenderSize (Size value)

public function get RenderSize () : Size

public function set RenderSize (value : Size)

 Do not set this property in XAML. See Remarks. 

Property Value

The rendered size for this element.

NoteImportant:

Do not attempt to set this property, either in XAML or in code, if using the WPF framework-level layout system. Nearly all typical application scenarios will use this layout system. The layout system will not respect sizes set in the RenderSize property directly. The RenderSize property is declared writable only to enable certain WPF core-level bridging cases that deliberately circumvent the typical layout protocols, such as support for the Adorner class.

This property can be used for checking the applicable render size within layout system overrides such as OnRender or GetLayoutClip.

A more common scenario is handling the SizeChanged event with the class handler override or the OnRenderSizeChanged event.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Contribuições da comunidade

Mostrar:
© 2014 Microsoft