Language
Edit

SizerBase.IsValidWidth(FrameworkElement, Double, Double) Method

Definition

Check for new requested horizontal size is valid or not

protected static bool IsValidWidth(Microsoft.UI.Xaml.FrameworkElement target, double newWidth, double parentActualWidth);
static member IsValidWidth : Microsoft.UI.Xaml.FrameworkElement * double * double -> bool
Protected Shared Function IsValidWidth (target As FrameworkElement, newWidth As Double, parentActualWidth As Double) As Boolean

Parameters

target
Microsoft.UI.Xaml.FrameworkElement

Target control being resized

newWidth
Double

The requested new width

parentActualWidth
Double

The parent control's ActualWidth

Returns

Bool result if requested horizontal change is valid or not

Applies to