Closed PureWeen closed 5 years ago
I can reproduce: this seems to be an issue in the designer. It only seems to happen when the Image dropdown is empty and clicking triggers a file dialog. Once the file dialog is closed (and the image is not shown), it's possible to select the image in the Image dropdown.
How do you get an image in the drop down?
@TonyLugg I just clicked it, and a file dialog showed up. I selected file, dismissed the dialog, and after that I clicked in the droptop again and the file I selected was the first item.
@rolfbjarne That is not what I am seeing. I have VS15.8.4 and, Xamarin 4.11.0.756, Xamarin Designer 4.14.221, Xamarin iOS 11.14.0.13. When I click the dropdown arrow, I select a file which it copies to my Resources folder. When I subsequently click the dropdown, it still presents the file dialog.
@TonyLugg sounds like something related, it could be the same bug. In any case the designer team will look at it.
@rolfbjarne OK. I have experienced this issue for months. I ported to a new XF solution to get the .NET Standard (instead of PCL) and it is still a problem. Hopefully it is fixed soon.
@rolfbjarne I tried your workaround on the Mac and it worked as you stated. Does not work in VS2017 though. I'll try to copy the storyboard from the Mac to the PC, fingers crossed.
@TonyLugg same problem here. Dialog appears and the selected image is copied in the Resources folder. But after that nothing happens. And the dialog keeps popping up whenever I try to select an image. I managed to find a workaround but it's not optimum. I used to have an older project from which I opened the LaunchScreen file in an editor and copied its contents to my new project. This seemed to work since I needed the exact same layout for the new LaunchScreen.
@rolfbjarne @xerx Copying the storyboard and image from the Mac didn't work for me. I still couldn't see the image in VS. My only work around was to create launch image assets the old way and specify them in the info.plist (removing the storyboard key). This still seems to work but is not the recommended/preferred way.
based on discussion @macios-community this seems to be the same issue as https://developercommunity.visualstudio.com/content/problem/348431/image-not-populating-on-ios-splashscreen-in-vs-158.html
That one was just posted. You should post your duplicate notice on that one pointing here.
@TonyLugg it's there but in the internal part of the system. Feel free to add it to the public side, my links were meant to help the engineers on the designer team (like avoiding triaging/duplicating the issue twice).
Hi even I am facing the same problem. I am on
Visual studio 15.8.7
Xamarin 4.11.0.776
Xamarin Designer 4.15.9
Xamarin ios and Xamarin Mac SDK 12.0.0.15
When I initially created the launchscreen around 3 months back I was able to see the images added in the asset catalog to select for the imageView in the image dropdown. Now I need to change that image and to my surprise the image dropdown was blank and keeps opening the file explorer every time I click on it.
The workaround suggested by @rolfbjarne didnt work for me as well !! There is one more thing I have observed in my Main Storyboard where I see all my outermost stackviews in each of the view controllers seemed to have moved right by +40 for some reason. However this doesn't seem to to be an issue when I run the app its just the designer now showing it wrong.
[sync] [VS-23] Comment by xamarinc
Fixed in version 4.18.0.167 (master)
Author: Denis Kandrov
Commit: 14721eb48609d4ca8a5449ba69ff1a59c1dfc887 (xamarin/designer)
[sync] [VS-31] Comment by xamarinc
Fixed in version 4.16.3.10 (d15-9)
Author: Denis Kandrov (Akvelon INC)
Commit: 2dd4b537fc9f8c2f0f83eca951d48f1dcc3586f9 (xamarin/designer)
We have fixed this issue and it's available in Visual Studio 2017 15.9.4. See the release notes here: https://docs.microsoft.com/en-us/visualstudio/releasenotes/vs2017-relnotes#15.9.4
From @jitendrajadav on September 12, 2018 8:19
Description
Xamarin forms iOS LaunchScreen.storyboard ImageView's source is not being set
Steps to Reproduce
Expected Behavior
It has to set and show in design surface
Actual Behavior
not able to show in design surface as well run time
Basic Information
Installed Version: Professional
Visual C++ 2017 00369-60000-00001-AA420 Microsoft Visual C++ 2017
Application Insights Tools for Visual Studio Package 8.13.10627.1 Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2017 15.8.05085.0 ASP.NET and Web Tools 2017
ASP.NET Core Razor Language Services 15.8.31590 Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2017 5.2.60618.0 For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 15.8.05023.0 Azure App Service Tools v3.0.0
Azure Functions and Web Jobs Tools 15.9.02009.0 Azure Functions and Web Jobs Tools
C# Tools 2.9.0-beta8-63208-01 C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Crystal Reports for .NET Framework
Crystal Reports for .NET Framework
Extensibility Message Bus 1.1.49 (remotes/origin/d15-8@ee674f3) Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
GitHub.VisualStudio 2.5.5.3913 A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
JavaScript Language Service 2.0 JavaScript Language Service
JavaScript Project System 2.0 JavaScript Project System
Microsoft Azure Tools 2.9 Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.10730.2
Microsoft Continuous Delivery Tools for Visual Studio 0.4 Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.
Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft Library Manager 1.0 Install client-side libraries easily to any web project
Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards 1.0 Microsoft Visual C++ Wizards
Microsoft Visual Studio Tools for Containers 1.1 Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
Microsoft Visual Studio VC Package 1.0 Microsoft Visual Studio VC Package
MLGen Package Extension 1.0 MLGen Package Visual Studio Extension Detailed Info
Mono Debugging for Visual Studio 4.11.8-pre (009db7d) Support for debugging Mono processes with Visual Studio.
NuGet Package Manager 4.6.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
ProjectServicesPackage Extension 1.0 ProjectServicesPackage Visual Studio Extension Detailed Info
ResourcePackage Extension 1.0 ResourcePackage Visual Studio Extension Detailed Info
ResourcePackage Extension 1.0 ResourcePackage Visual Studio Extension Detailed Info
SQL Server Data Tools 15.1.61808.07020 Microsoft SQL Server Data Tools
SQL Server Reporting Services 14.0.1016.285 Microsoft SQL Server Reporting Services Designers Version 14.0.1016.285
TypeScript Tools 15.8.20801.2001 TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 2.9.0-beta8-63208-01 Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual F# Tools 10.2 for F# 4.5 15.8.0.0. Commit Hash: c55dd2c3d618eb93a8d16e503947342b1fa93556. Microsoft Visual F# Tools 10.2 for F# 4.5
Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for Containers 1.0 Visual Studio Tools for Containers
Visual Studio Tools for Universal Windows Apps 15.0.28010.00 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.
VisualStudio.Mac 1.0 Mac Extension for Visual Studio
Windows Template Studio 2.3.18212.1 Windows Template Studio quickly builds a UWP app, using a wizard-based UI to turn your needs into a foundation of Windows 10 patterns and best practices.
Xamarin 4.11.0.756 (d15-8@b66ff7180) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 4.14.221 (a73ca07f7) Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin Live Reload 0.4.0 (remotes/origin/dev@75526a0) Provides live reload capabilities for Xamarin XAML.
Xamarin Templates 1.1.116 (9619170) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.Android SDK 9.0.0.19 (HEAD/a8a3b0ec7) Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 11.14.0.13 (373c313) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.- Nuget Packages:
Screenshots
Reproduction Link
Copied from original issue: xamarin/Xamarin.Forms#3764