Exemplo n.º 1
0
 public static bool IsThicknessNonNegative(Thickness thickness)
 {
     if (!Utility.IsDoubleFiniteAndNonNegative(thickness.Top))
     {
         return(false);
     }
     if (!Utility.IsDoubleFiniteAndNonNegative(thickness.Left))
     {
         return(false);
     }
     if (!Utility.IsDoubleFiniteAndNonNegative(thickness.Bottom))
     {
         return(false);
     }
     if (!Utility.IsDoubleFiniteAndNonNegative(thickness.Right))
     {
         return(false);
     }
     return(true);
 }
Exemplo n.º 2
0
 public static bool IsCornerRadiusValid(CornerRadius cornerRadius)
 {
     if (!Utility.IsDoubleFiniteAndNonNegative(cornerRadius.TopLeft))
     {
         return(false);
     }
     if (!Utility.IsDoubleFiniteAndNonNegative(cornerRadius.TopRight))
     {
         return(false);
     }
     if (!Utility.IsDoubleFiniteAndNonNegative(cornerRadius.BottomLeft))
     {
         return(false);
     }
     if (!Utility.IsDoubleFiniteAndNonNegative(cornerRadius.BottomRight))
     {
         return(false);
     }
     return(true);
 }
Exemplo n.º 3
0
 public static bool IsCornerRadiusValid(CornerRadius cornerRadius)
 {
     return(Utility.IsDoubleFiniteAndNonNegative(cornerRadius.TopLeft) && Utility.IsDoubleFiniteAndNonNegative(cornerRadius.TopRight) && Utility.IsDoubleFiniteAndNonNegative(cornerRadius.BottomLeft) && Utility.IsDoubleFiniteAndNonNegative(cornerRadius.BottomRight));
 }
Exemplo n.º 4
0
 public static bool IsThicknessNonNegative(Thickness thickness)
 {
     return(Utility.IsDoubleFiniteAndNonNegative(thickness.Top) && Utility.IsDoubleFiniteAndNonNegative(thickness.Left) && Utility.IsDoubleFiniteAndNonNegative(thickness.Bottom) && Utility.IsDoubleFiniteAndNonNegative(thickness.Right));
 }