public Thickness ProvideValue(IServiceProvider serviceProvider)
        {
            Thickness respThickness = new Thickness(0, 0, 0, 0);

            if (!Uniform.Equals(0))
            {
                respThickness.Bottom = Uniform / 14 * Device.GetNamedSize(Size, typeof(Label));
                respThickness.Top    = Uniform / 14 * Device.GetNamedSize(Size, typeof(Label));
                respThickness.Left   = Uniform / 14 * Device.GetNamedSize(Size, typeof(Label));
                respThickness.Right  = Uniform / 14 * Device.GetNamedSize(Size, typeof(Label));
            }
            if (!Left.Equals(0))
            {
                respThickness.Left = Left / 14 * Device.GetNamedSize(Size, typeof(Label));
            }
            if (!Right.Equals(0))
            {
                respThickness.Right = Right / 14 * Device.GetNamedSize(Size, typeof(Label));
            }
            if (!Top.Equals(0))
            {
                respThickness.Top = Top / 14 * Device.GetNamedSize(Size, typeof(Label));
            }
            if (!Bottom.Equals(0))
            {
                respThickness.Bottom = Bottom / 14 * Device.GetNamedSize(Size, typeof(Label));
            }

            return(respThickness);
        }
 public Thickness ProvideValue(IServiceProvider serviceProvider)
 {
     if (!Uniform.Equals(0))
     {
         double uniformDouble = Uniform * Device.GetNamedSize(Size, typeof(Label));
         return(new Thickness(uniformDouble));
     }
     else if (!Left.Equals(0) || !Right.Equals(0) || !Top.Equals(0) || !Bottom.Equals(0))
     {
         double leftDouble   = (Left / 14) * Device.GetNamedSize(Size, typeof(Label));
         double rightDouble  = (Right / 14) * Device.GetNamedSize(Size, typeof(Label));
         double topDouble    = (Top / 14) * Device.GetNamedSize(Size, typeof(Label));
         double bottomDouble = (Bottom / 14) * Device.GetNamedSize(Size, typeof(Label));
         return(new Thickness(leftDouble, topDouble, rightDouble, bottomDouble));
     }
     return(new Thickness(0));
 }