Utils.

IsValid(CornerRadius, bool, bool, bool, bool) Method

Summary

Verifies if this CornerRadius contains only valid values The set of validity checks is passed as parameters.
Namespace
MahApps.Metro.Controls
Containing Type
Utils

Syntax

public static bool IsValid(this CornerRadius corner, bool allowNegative, bool allowNaN, bool allowPositiveInfinity, bool allowNegativeInfinity)

Parameters

Name Type Description
corner CornerRadius CornerRadius value
allowNegative bool allows negative values
allowNaN bool allows Double.NaN
allowPositiveInfinity bool allows Double.PositiveInfinity
allowNegativeInfinity bool allows Double.NegativeInfinity

Return Value

Type Description
bool Whether or not the CornerRadius complies to the range specified