This topic has not yet been rated - Rate this topic

IXRColumnDefinition::SetMaxWidth (Compact 7)

6/2/2013

This method sets a value that represents the maximum width of this column definition.


virtual HRESULT STDMETHODCALLTYPE SetMaxWidth(
    float MaxWidth
) = 0; 
MaxWidth

[in] A float value that represents the new maximum width of this column definition.

Returns an HRESULT that indicates success or failure.

When you use multiple width settings in an IXRColumnDefinition, the MinWidth value takes precedence over the MaxWidth value, which in turn takes precedence over the Width value.

When you add or remove rows or columns to a grid object, the ActualWidth value for all IXRColumnDefinition objects, and also the ActualHeight value of all IXRRowDefinition objects, becomes zero until the IXRGrid inherited method IXRUIElement::Measure is called to update the desired size of the object.

System.Windows.Controls.ColumnDefinition.MaxWidth

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.