Example #1
0
        private static int getNumValue(this System.Windows.Controls.Image img, System.Windows.DependencyProperty prop)
        {
            double val = (double)img.GetValue(prop);

            if (double.IsNaN(val))
            {
                return(1);
            }
            else
            {
                return(Convert.ToInt32(val));
            }
        }
Example #2
0
 public static object GetSource(Image obj)
 {
     return obj.GetValue(SourceProperty);
 }
Example #3
0
 public static bool GetIsLoading(Image obj)
 {
     return (bool)obj.GetValue(IsLoadingProperty);
 }
Example #4
0
 public static bool GetErrorDetected(Image obj)
 {
     return (bool)obj.GetValue(ErrorDetectedProperty);
 }
Example #5
0
 public static bool GetDisplayWaitingAnimationDuringLoading(Image obj)
 {
     return (bool)obj.GetValue(DisplayWaitingAnimationDuringLoadingProperty);
 }
Example #6
0
 public static DisplayOptions GetDisplayOption(Image obj)
 {
     return (DisplayOptions)obj.GetValue(DisplayOptionProperty);
 }
Example #7
0
 public static bool GetDisplayErrorThumbnailOnError(Image obj)
 {
     return (bool)obj.GetValue(DisplayErrorThumbnailOnErrorProperty);
 }
Example #8
0
 public static SourceType GetSourceType(Image obj)
 {
     return (SourceType)obj.GetValue(SourceTypeProperty);
 }
Example #9
0
 internal static int Left(this System.Windows.Controls.Image img)
 {
     return(Convert.ToInt32(img.GetValue(Canvas.LeftProperty)));
 }
Example #10
0
 public static byte[] GetSetSource(SWC.Image target)
 {
     return((byte[])target.GetValue(SetSourceProperty));
 }
Example #11
0
 public static double GetCacheHeight(Image obj)
 {
     return (double)obj.GetValue(CacheHeightProperty);
 }