Bug 21463 - ImageSource.FromFile should return a FileImageSource instance
Summary: ImageSource.FromFile should return a FileImageSource instance
Status: RESOLVED INVALID
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.2
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-07-20 10:54 UTC by John Hair
Modified: 2014-09-22 16:25 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description John Hair 2014-07-20 10:54:29 UTC
As per subject, but it is returning an ImageSource instance. Method help says it should be a FileImageSource.
Comment 1 Ram Chandra 2014-08-19 08:59:20 UTC
I can reproduce the reported behavior. I have checked the definition of FromFile() of ImageSource class and observed that  ImageSource.FromFile return an ImageSource instance .

Screencast: http://www.screencast.com/t/2Q6M7INgJ81

I’ll need confirmation from the developer if this is a bug. Leaving as NEW for now.

Environment Info:

=== Xamarin Studio ===

Version 5.2.1 (build 1)
Installation UUID: 6ea47b0d-1852-4aaf-808d-373ff0a5002b
Runtime:
	Mono 3.8.0 ((no/62a857e)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000007

=== Apple Developer Tools ===

Xcode 5.1 (5084)
Build 5B130a

=== Xamarin.Mac ===

Version: 1.10.0.9 (Business Edition)

=== Xamarin.Android ===

Version: 4.16.0 (Business Edition)
Android SDK: /Users/jatin66/Desktop/Backup/android-sdk-macosx
	Supported Android versions:
		1.6   (API level 4)
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: /usr
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

=== Xamarin.iOS ===

Version: 7.4.0.102 (Business Edition)
Hash: 141adb9
Branch: 
Build date: 2014-08-15 12:54:28-0400

=== Build Information ===

Release ID: 502010001
Git revision: d06832ce9807d6be24aca225457e8b37c7669f6f
Build date: 2014-08-07 12:10:47-04
Xamarin addins: 1de032531be4cecf2f39dbee3b87aac78204058c

=== Operating System ===

Mac OS X 10.9.3
Darwin Jatin66s-iMac.local 13.2.0 Darwin Kernel Version 13.2.0
    Thu Apr 17 23:03:13 PDT 2014
    root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
Comment 2 John Hair 2014-08-25 16:11:29 UTC
To be honest I am no longer interested in submitting bugs for Xamarin Forms. I feel that the software is not yet mature enough to offer or be recommended to my clients. The initial release was appalling, and in my view pre-alpha quality. I do not get paid to test and debug Xamarin software.
I do see the improvements that the team have created and I know they are working hard, and I have total respect for them and all the hard work they are doing. But management should never have allowed this to be released.
Comment 3 Eric Maupin 2014-09-22 13:22:57 UTC
FromFile has always returned a FileImageSource instance. The API does define it as returning the base class, which is done for consistency with other options that may not have a defined ImageSource subclass along with it. There is nothing preventing you from simply newing a instance of FileImageSource or casting appropriately.
Comment 4 John Hair 2014-09-22 16:25:11 UTC
ImageSource.FromFile kinda implies it should be a FileImageSource. Also the summary info for the method says it should be a FileImageSource. But you're probably right. Either way I won't be revisiting Xamarin Forms for a while, there are just too many bugs and I don't get paid to file bugs in your products.