From 272033723ea275ceb8a288fa605eafd035c79f2d Mon Sep 17 00:00:00 2001 From: "E.Z. Hart" Date: Mon, 18 Jul 2016 17:16:47 -0600 Subject: Windows image loader error handling (#260) * Repros for various image issues * Log image loading errors * Better repro instructions and user interface * Image loading tests now running on WinRT/UWP phone/tablet/desktop * Move FailImageSource into shared project * Move FailImageSource into shared project * Update docs --- .../Properties/AssemblyInfo.cs | 9 ++++++++- .../Xamarin.Forms.ControlGallery.WindowsUniversal.csproj | 4 ++++ Xamarin.Forms.ControlGallery.WindowsUniversal/invalidimage.jpg | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 Xamarin.Forms.ControlGallery.WindowsUniversal/invalidimage.jpg (limited to 'Xamarin.Forms.ControlGallery.WindowsUniversal') diff --git a/Xamarin.Forms.ControlGallery.WindowsUniversal/Properties/AssemblyInfo.cs b/Xamarin.Forms.ControlGallery.WindowsUniversal/Properties/AssemblyInfo.cs index 405b6c6f..b83ca10b 100644 --- a/Xamarin.Forms.ControlGallery.WindowsUniversal/Properties/AssemblyInfo.cs +++ b/Xamarin.Forms.ControlGallery.WindowsUniversal/Properties/AssemblyInfo.cs @@ -1,6 +1,10 @@ using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Xamarin.Forms; +using Xamarin.Forms.ControlGallery.WindowsUniversal; +using Xamarin.Forms.Controls; +using Xamarin.Forms.Platform.UWP; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information @@ -26,4 +30,7 @@ using System.Runtime.InteropServices; // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] -[assembly: ComVisible(false)] \ No newline at end of file +[assembly: ComVisible(false)] + +// Deliberately broken image source and handler so we can test handling of image loading errors +[assembly: ExportImageSourceHandler(typeof(FailImageSource), typeof(BrokenImageSourceHandler))] \ No newline at end of file diff --git a/Xamarin.Forms.ControlGallery.WindowsUniversal/Xamarin.Forms.ControlGallery.WindowsUniversal.csproj b/Xamarin.Forms.ControlGallery.WindowsUniversal/Xamarin.Forms.ControlGallery.WindowsUniversal.csproj index e2cb27df..d5339b71 100644 --- a/Xamarin.Forms.ControlGallery.WindowsUniversal/Xamarin.Forms.ControlGallery.WindowsUniversal.csproj +++ b/Xamarin.Forms.ControlGallery.WindowsUniversal/Xamarin.Forms.ControlGallery.WindowsUniversal.csproj @@ -117,6 +117,7 @@ + @@ -150,6 +151,9 @@ seth.png + + BrokenImageSourceHandler.cs + StringProvider.cs diff --git a/Xamarin.Forms.ControlGallery.WindowsUniversal/invalidimage.jpg b/Xamarin.Forms.ControlGallery.WindowsUniversal/invalidimage.jpg new file mode 100644 index 00000000..6c7ebbb3 --- /dev/null +++ b/Xamarin.Forms.ControlGallery.WindowsUniversal/invalidimage.jpg @@ -0,0 +1 @@ +This is certainly not a real JPEG. \ No newline at end of file -- cgit v1.2.3