예제 #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);
        }