Была ли эта страница полезной?
Ваш отзыв об этом контенте важен для нас. Расскажите нам о том, что вы думаете.
Дополнительный отзыв?
1500 символов осталось
MSDN Library
EN
Данное содержимое не доступно на вашем языке, используйте версию на английском языке.

FrameworkElement.MaxWidth Property

Gets or sets the maximum width constraint of a FrameworkElement.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

'Декларация
Public Property MaxWidth As Double
<frameworkElement MaxWidth="double"/>

Property Value

Type: System.Double
The maximum width of the element, in logical pixels. The default is PositiveInfinity. This value can be any value equal to or greater than 0. PositiveInfinity is also valid.

Dependency property identifier field: MaxWidthProperty

This is one of three properties on FrameworkElement that specify width information. The other two are MinWidth and Width. If there is a conflict between these values, the order of application for actual width determination is first MinWidth must be honored, then MaxWidth, and finally if each of these are within bounds, Width.

Non-integral values for MaxWidth are technically permitted, but should generally be avoided and are normally rounded by the default layout rounding behavior.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Показ:
© 2015 Microsoft