コード例 #1
0
 private static object _CoerceGlassFrameThickness(Thickness thickness)
 {
     if (!thickness.IsNonNegative())
     {
         return(GlassFrameCompleteThickness);
     }
     return(thickness);
 }
コード例 #2
0
        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);
        }