Exemplo n.º 1
0
 public static GridLength Convert(PrintLength printLength)
 {
     if (printLength.PrintUnitType == PrintUnitType.Star)
     {
         return(new GridLength(printLength.Value, GridUnitType.Star));
     }
     if (printLength.PrintUnitType == PrintUnitType.Pixel)
     {
         return(new GridLength(printLength.Value, GridUnitType.Pixel));
     }
     return(GridLength.Auto);
 }
 public static GridLength Convert(PrintLength printLength)
 {
     if (printLength.PrintUnitType == PrintUnitType.Star)
     {
         return new GridLength(printLength.Value, GridUnitType.Star);
     }
     if (printLength.PrintUnitType == PrintUnitType.Pixel)
     {
         return new GridLength(printLength.Value, GridUnitType.Pixel);
     }
     return GridLength.Auto;
 }