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