ControlzEx.Microsoft.Windows.Shell.WindowChrome._CoerceGlassFrameThickness C# (CSharp) Method

_CoerceGlassFrameThickness() private static method

private static _CoerceGlassFrameThickness ( System.Windows.Thickness thickness ) : object
thickness System.Windows.Thickness
return object
        private static object _CoerceGlassFrameThickness(Thickness thickness)
        {
            // If it's explicitly set, but set to a thickness with at least one negative side then 
            // coerce the value to the stock GlassFrameCompleteThickness.
            if (!thickness.IsNonNegative())
            {
                return GlassFrameCompleteThickness;
            }

            return thickness;
        }