Bug 43442 - iOS Designer rendering issues on new projects and Storyboards within Visual Studio. Designer controls pixelated, unexpected behaviors when setting/viewing properties of controls.
Summary: iOS Designer rendering issues on new projects and Storyboards within Visual S...
Status: CONFIRMED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS Designer ()
Version: 4.1.2 (C7SR1)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-08-17 00:15 UTC by Ammar Mheir
Modified: 2017-07-11 17:45 UTC (History)
10 users (show)

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


Attachments
iOSDesigner Logs (41.67 KB, text/plain)
2016-08-17 00:15 UTC, Ammar Mheir
Details
Image of pixelated controls (13.73 KB, image/png)
2017-07-07 15:11 UTC, John Miller [MSFT]
Details


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 for Bug 43442 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:
Status:
CONFIRMED

Description Ammar Mheir 2016-08-17 00:15:01 UTC
Created attachment 17065 [details]
iOSDesigner Logs

## Overview

iOS Designer having rendering issues and behaving unexpectdley when working with Storyboards. Segues, ViewControllers, and any UIControls appear pixelated, and selecting a control will not immediatley display that controls properties in the properties window.

## Steps to reproduce 

1.Open Visual Studio 2015 and create a new iOS Universal App (Blank iOS App)
2.Right-click project -> Add New Item -> EmptyStoryboard
3.You can start adding new View controllers, and various control/widgets (buttons, labels, etc..). Add at least two controls in the Storyboard making sure to fill in the Widget Name property in the Properties window.
4.Save the Storyboard and close iOS Designer window. (Remaining in VS) Then re-open Storyboard by double-clicking on the Storyboard file that was just made in the solution explorer. 
5.Click on any of the controls that were just created and notice how the name property is missing, click on another object then back will then display the set properties.


## Expected Results

iOS Designer runs a little faster with no pixelated objects within the Designer window. Also Storyboard widgets and controls would render correctly with set properties already displayed in the properties window.


## Actual Results

iOS Designer having various rendering issues when working with Storyboards. Main issue is how the Storyboards do not correctly display any of the properties that were set on the widgets. If a Button was given a Name property (under the identity section), then that name will not appear when the Storyboard re-opens again unless you click away on another widget and back. It seems that Visual Studio is not being able to display the various properties when that type of widget initially loads because then if you click on another widget of the same type, it would display the name fine. iOS Designer will also have pixelated controls when working with Storyboards. (As shown in forum post below and can be seen when creating Navigation Controllers). 

The iOS Designer would also occasionally run into an iOS Designer errors when trying to load a Storyboard with the following error message:

>An unexpected error occurred which prevented the toolbox from loading. The log files will contain more information about what went wrong.
>Contents of C:\Users\v-ammhei\AppData\Local\Xamarin\Logs\14.0\iOSDesigner-6348.2016-08-16__14-09-41.log:
>MDAddinsHash: 451cc4c4640551a72356d8a85a4f15ff55fcb661
>[2016-08-16 14:12:08.6] INFO: Starting full reload...
>[2016-08-16 14:12:08.8] INFO: Reloading: Serialization took 0ms
>[2016-08-16 14:12:08.9] INFO: Starting full reload...
>[2016-08-16 14:12:08.9] INFO: Reloading: Serialization took 0ms
>[2016-08-16 14:13:16.8] INFO: Reloading: Deserialization took 9ms
>[2016-08-16 14:13:16.8] INFO: Reloading: Server rendering completed in 67946ms with 228573 bytes
>[2016-08-16 14:13:16.8] INFO: Reloading: Deserialization took 6ms
>[2016-08-16 14:13:16.8] INFO: Reloading: Server rendering completed in 67916ms with 228573 bytes
>[2016-08-16 14:13:16.9] INFO: Fetched iOS SDK data in C:\Users\v-ammhei\AppData\Local\Temp\xd-support-files-5a14b498
>[2016-08-16 14:13:17.0] WARN: Not adding `Entitlements.plist' to image resources due to error: System.NotSupportedException: No imaging component suitable to 
>complete this operation was found. ---> System.Runtime.InteropServices.COMException: The component cannot be found. (Exception from HRESULT: 0x88982F50)
>   --- End of inner exception stack trace ---
>   at System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle)
>   at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache)
>   at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()
>   at System.Windows.Media.Imaging.BitmapImage.EndInit()
>   at Xwt.WPFBackend.ImageHandler.LoadFromStream(Stream stream)
>   at Xwt.Drawing.Image.FromStream(Stream stream)
>   at MonoTouch.Design.Client.IPhoneDesignerSession.ConvertBundleResources(IEnumerable`1 resources)
>[2016-08-16 14:13:17.0] INFO: Gathered the following assemblies to upload to the renderer:
>[2016-08-16 14:13:17.0] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\System.dll
>[2016-08-16 14:13:17.0] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\System.Xml.dll
>[2016-08-16 14:13:17.0] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\System.Core.dll
>[2016-08-16 14:13:17.0] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Xamarin.iOS.dll
>[2016-08-16 14:13:17.0] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\mscorlib.dll
>[2016-08-16 14:13:17.0] INFO: 	C:\Users\v-ammhei\Documents\Visual Studio 2015\Projects\App5iOS\App5iOS\bin\iPhone\Debug\App5iOS.exe
>[2016-08-16 14:13:17.0] INFO: These assembly will not be uploaded as they have already been sent:
>[2016-08-16 14:13:17.0] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\System.dll
>[2016-08-16 14:13:17.0] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\System.Xml.dll
>[2016-08-16 14:13:17.0] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\System.Core.dll
>[2016-08-16 14:13:17.0] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Xamarin.iOS.dll
>[2016-08-16 14:13:17.0] INFO: 	C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\mscorlib.dll
>[2016-08-16 14:13:17.0] INFO: These assembly will not be uploaded as they cannot be found on disk:
>[2016-08-16 14:13:17.0] INFO: 	C:\Users\v-ammhei\Documents\Visual Studio 2015\Projects\App5iOS\App5iOS\bin\iPhone\Debug\App5iOS.exe
>[2016-08-16 14:13:17.0] INFO: Loaded 0 custom classes from the server
>[2016-08-16 14:13:17.2] INFO: Reloading: Serialization took 6ms
>[2016-08-16 14:13:17.3] INFO: Fetched iOS SDK data in C:\Users\v-ammhei\AppData\Local\Temp\xd-support-files-15681a57
>[2016-08-16 14:13:17.3] WARN: Not adding `Entitlements.plist' to image resources due to error: System.NotSupportedException: No imaging component suitable to 
>complete this operation was found. ---> System.Runtime.InteropServices.COMException: The component cannot be found. (Exception from HRESULT: 0x88982F50)
>   --- End of inner exception stack trace ---


##  Version Information

### Windows
Microsoft Visual Studio Enterprise 2015
Version 14.0.25425.01 Update 3
Microsoft .NET Framework
Version 4.6.01586

Xamarin   4.1.2.18 (fcbe082)
Xamarin.iOS   9.8.2.22 (f37444a)


### Mac 
Xcode 7.3.1 (10188.1)
Build 7D1014

Version: 2.8.2.22 (Xamarin Studio Community)
Xamarin.iOS: 9.8.2.22 

Mac OS X 10.11.5


## Additional Information

Here is a forum post that has additional information about this particular issue with a screenshot highlighting the rendering problems: https://forums.xamarin.com/discussion/72853/storyboard-rendering-problems-and-unexpected-behaviors#latest
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2016-08-17 00:39:02 UTC
## Note to the Xamarin team

> selecting a control will not immediatley display that controls properties in
> the properties window

That particular symptom might overlap with Bug 43326.
Comment 2 John Miller [MSFT] 2017-07-07 15:10:30 UTC
I am able to reproduce the issue with the properties name mentioned here, but I believe Brendan is correct and that issue is covered in Bug 43326. For this bug, I will leave it to track the "pixelated controls". 

I followed the directions in the bug report and added two Button controls. They do appear pixelated. See attached image. 

Microsoft Visual Studio Enterprise 2017 Preview (2)
Version 15.3.0 Preview 3.0
VisualStudio.15.Preview/15.3.0-pre.3.0+26621.2
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Enterprise

Xamarin   4.6.0.240 (60c3d0e)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK   7.4.0.2 (5a73b38)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   10.12.0.5 (104e7b4)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 3 John Miller [MSFT] 2017-07-07 15:11:02 UTC
Created attachment 23400 [details]
Image of pixelated controls