Ejemplo n.º 1
0
 private bool IsValid(GradientStopCollection stops)
 {
     if (stops == null)
     {
         return(false);
     }
     if (stops.Count < 2)
     {
         return(false);
     }
     return(stops.All(stop => !(stop.Position < 0) && !(stop.Position > 1)));
 }