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)); } }
public static object GetSource(Image obj) { return obj.GetValue(SourceProperty); }
public static bool GetIsLoading(Image obj) { return (bool)obj.GetValue(IsLoadingProperty); }
public static bool GetErrorDetected(Image obj) { return (bool)obj.GetValue(ErrorDetectedProperty); }
public static bool GetDisplayWaitingAnimationDuringLoading(Image obj) { return (bool)obj.GetValue(DisplayWaitingAnimationDuringLoadingProperty); }
public static DisplayOptions GetDisplayOption(Image obj) { return (DisplayOptions)obj.GetValue(DisplayOptionProperty); }
public static bool GetDisplayErrorThumbnailOnError(Image obj) { return (bool)obj.GetValue(DisplayErrorThumbnailOnErrorProperty); }
public static SourceType GetSourceType(Image obj) { return (SourceType)obj.GetValue(SourceTypeProperty); }
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)); }
public static double GetCacheHeight(Image obj) { return (double)obj.GetValue(CacheHeightProperty); }