Skip to main content
.NET Framework Class Library
StackPanelViewportWidth Property

Gets a value that contains the horizontal size of the content's viewport.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
Syntax
Public ReadOnly Property ViewportWidth As [%$TOPIC/ms594143_en-us_VS_110_1_0_0_0_0%]
public [%$TOPIC/ms594143_en-us_VS_110_1_0_1_0_0%] ViewportWidth { get; }
public:
virtual property [%$TOPIC/ms594143_en-us_VS_110_1_0_2_0_0%] ViewportWidth {
	[%$TOPIC/ms594143_en-us_VS_110_1_0_2_0_1%] get () sealed;
}
abstract ViewportWidth : [%$TOPIC/ms594143_en-us_VS_110_1_0_3_0_0%] with get 
override ViewportWidth : [%$TOPIC/ms594143_en-us_VS_110_1_0_3_0_1%] with get
final function get ViewportWidth () : [%$TOPIC/ms594143_en-us_VS_110_1_0_4_0_0%]

Property Value

Type: SystemDouble
The Double that represents the vertical size of the content's viewport. The default value is 0.0.

Implements

IScrollInfoViewportWidth
Remarks

The returned value is described in Device Independent Pixels.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1