UIElement::RenderSize Property
Gets (or sets, but see Remarks) the final render size of this element.
Assembly: PresentationCore (in PresentationCore.dll)
Important |
|---|
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.
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
