Bug 39704 - iOS Designer does not render Image Set image that has been sliced to a 9-patch in XCode.
Summary: iOS Designer does not render Image Set image that has been sliced to a 9-patc...
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS Designer ()
Version: 4.0.0 (C6)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
: 39703 ()
Depends on:
Blocks:
 
Reported: 2016-03-17 01:03 UTC by Jon Goldberger [MSFT]
Modified: 2017-07-10 13:54 UTC (History)
7 users (show)

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


Attachments
Test Project (63.10 KB, application/zip)
2016-03-17 01:03 UTC, Jon Goldberger [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 on Developer Community 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 FIXED

Description Jon Goldberger [MSFT] 2016-03-17 01:03:39 UTC
Created attachment 15438 [details]
Test Project

## Description

In XCode, the image set editor allows you to slice up an image (PNG's only) to be a 9-patch. In XCode IB, you can then reference that image set as the background for e.g. a UIButton and IB will render the image as a 9-patch based on the slicing done in the Image Set editor. If you then move that Image set to VS (or XS) and reference it as the background image for a button, iOS Designer will not render image at all but show a placeholder image (in VS, in XS the unsliced image is rendered). But on deploy to simulator or device, the image will be rendered as a 9-patch. 

## Steps to reproduce.

1. Open the attached test project in Visual Studio.

2. Open the Main.storyboard file in iOS Designer.

Expected result: Button will show sliced up image of Einstein.

Actual result: Only an image placeholder is shown

## Notes

Clean solution and deploy app to simulator to see how the image should have been rendered on the Design surface. 

## Environment

Microsoft Visual Studio Professional 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Professional

Visual Basic 2015   00322-40000-00000-AA850
Microsoft Visual Basic 2015

Visual C# 2015   00322-40000-00000-AA850
Microsoft Visual C# 2015

Visual C++ 2015   00322-40000-00000-AA850
Microsoft Visual C++ 2015

Visual F# 2015 RC   00322-40000-00000-AA850
Microsoft Visual F# 2015 RC

Windows Phone SDK 8.0 - ENU   00322-40000-00000-AA850
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools   14.0.20626.0
ASP.NET and Web Tools

ASP.NET Web Frameworks and Tools 2013   5.2.30624.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.5
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GenerateUnitTest   1.0
Generates unit test code for methods in classes under test.

GitHub.VisualStudio   1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

NuGet Package Manager   3.2.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.50616.0
Microsoft SQL Server Data Tools

Visual Studio Tools for Universal Windows Apps   14.0.23309.00 d14oob
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin   4.0.1.145 (f869dba)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   6.0.2.1 (46c3f7e)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   9.4.2.24 (49ba15e)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 2 Jon Goldberger [MSFT] 2016-03-17 01:04:32 UTC
same issue filed for XS in bug #39703
Comment 3 Alan McGovern 2016-03-27 07:02:50 UTC
*** Bug 39703 has been marked as a duplicate of this bug. ***
Comment 4 NicolasDorier 2016-08-30 16:50:37 UTC
Bug still not resolved
Comment 5 NicolasDorier 2016-09-30 06:11:36 UTC
It appears fixed in 4.2.0.695... great job, this one was a major pain in the ass. But another annoying one appeared: https://bugzilla.xamarin.com/show_bug.cgi?id=44818
Comment 6 John Miller [MSFT] 2017-07-10 13:54:21 UTC
Thanks so much for taking the time to submit this report! I attempted to reproduce this issue based on the bug description with the latest Visual Studio 2017 Preview version 15.3, and I was unable to hit the problem. If this issue is still occurring for you, please reopen this report and attach a reproduction, ideally starting with a new template project and then adding just the code necessary to demonstrate the issue.