信息
您所需的主题如下所示。但此主题未包含在此库中。

UIElement.RenderSize 属性

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

命名空间: System.Windows
程序集: PresentationCore(在 presentationcore.dll 中)
XML 命名空间:  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. 

属性值

The rendered size for this element.

说明重要事项:

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 Vista、Microsoft Windows XP SP2 和 Windows Server 2003 SP1 支持 Microsoft .NET Framework 3.0。

.NET Framework

受以下版本支持:3.0

社区附加资源

显示:
© 2014 Microsoft