Esempio n. 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));
            }
        }
Esempio n. 2
0
 public static object GetSource(Image obj)
 {
     return obj.GetValue(SourceProperty);
 }
Esempio n. 3
0
 public static bool GetIsLoading(Image obj)
 {
     return (bool)obj.GetValue(IsLoadingProperty);
 }
Esempio n. 4
0
 public static bool GetErrorDetected(Image obj)
 {
     return (bool)obj.GetValue(ErrorDetectedProperty);
 }
Esempio n. 5
0
 public static bool GetDisplayWaitingAnimationDuringLoading(Image obj)
 {
     return (bool)obj.GetValue(DisplayWaitingAnimationDuringLoadingProperty);
 }
Esempio n. 6
0
 public static DisplayOptions GetDisplayOption(Image obj)
 {
     return (DisplayOptions)obj.GetValue(DisplayOptionProperty);
 }
Esempio n. 7
0
 public static bool GetDisplayErrorThumbnailOnError(Image obj)
 {
     return (bool)obj.GetValue(DisplayErrorThumbnailOnErrorProperty);
 }
Esempio n. 8
0
 public static SourceType GetSourceType(Image obj)
 {
     return (SourceType)obj.GetValue(SourceTypeProperty);
 }
Esempio n. 9
0
 internal static int Left(this System.Windows.Controls.Image img)
 {
     return(Convert.ToInt32(img.GetValue(Canvas.LeftProperty)));
 }
Esempio n. 10
0
 public static byte[] GetSetSource(SWC.Image target)
 {
     return((byte[])target.GetValue(SetSourceProperty));
 }
Esempio n. 11
0
 public static double GetCacheHeight(Image obj)
 {
     return (double)obj.GetValue(CacheHeightProperty);
 }