Xamarin.Forms Previewer not working - xamarin

I have Xamarin studio(v6.1) installed on my windows machine and I can not see the preview button for the xaml.
I have followed the steps as outlined here. Is there anything else I should do to get it working ?

Related

Xamarin Native Views in XAML doesn't show on IOS

I tried to add a native view in a xamarin forms xaml file.
I have downloaded the example code from this page:
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/platform/native-views/xaml
Everything works file for Android and UWP. But for IOS, it can't display the native view, just a blank view.
I tried every example I can find on that page , turning out to the same result.
I'm using the latest version of VS 2017 and Xamarin.
Thanks for any suggestion.
This issue was caused by using Xamarin.forms 3.0.0, and a service release will be available for this soon.
Refer to here.

there was internal issue with the rendering process - XAML previewer

I am totaly new to xamarin framework, i have just created an app with UI technology Xamarin.Forms and Code Sharing Strategy .NET Standard and i am using Visual Studio 2017 15.5.7 .
When I try to preview the default app template with the XAML Previewer, I get this error "There was an internal issue with the rendering process". I have given the screenshot below. I have tried alot to solve the problem but faild.
What should i do to solve this problem?
https://1drv.ms/u/s!AmfedwXYYdKe3HfQbHZBsM31ZSTO
Got it. Had to downgrade. Note for non-Mac users: if you don't have a Mac, the previewer won't work, even for Android. All you'll get is a blue/gray screen. This bug needs to be fixed by Xamarin.
On your Mac:
Switch back to the stable channel on Xamarin Studio if you're not on
it already.
Install Xcode 8.2.
On Windows:
Well, I had to uninstall VS 2017, install VS 2015, download the manual installer (the universal installer didn't work) from
https://store.xamarin.com/account/my/subscription/downloads ->
Show All Versions ->
Xamarin.Android ->
Download latest version (you only need to download Android --
Xamarin.iOS and Xamarin.Android point to the same "manual" installer
on Windows)
, install it, configure the Mac agent. This finally let the previewer
work... for iOS.
Android preview still doesn't work.
EDIT:
Solved it. You need to update to JDK 8 and set it to use that directory in
Tools ->
Options ->
Xamarin ->
Android.
Then, make sure you uninstall any 32 bit version of the JDK or all you'll get is XFPageRendererView instead of your XAML. TOOK FOREVER TO FIGURE OUT. This is how I spend my Christmas
Now, the only annoying thing is intellisense doesn't work on my XAML files. SIGH, any ideas?
EDIT:
You have to right-click on the XAML file and Open With... -> XAML Designer. The designer with encoding option didn't work for me, but the regular designer did. How odd.

Error in VS2015 installation and Xamarin UWP not working

I'm trying to install VS2015 Community in my PC.
When I install everything at the end the installer gives to me the following message:
I've tried to install, reinstall, update but anything changed. The only consequence that I can see is that when I create a new Xamarin solution, when I run the UWP project using Local Machine as target it starts, but then I obtain this exception message.
If I run the application from the Mobile emulator, it starts without problems.
Somewhere (sorry, I forgot the source) I've read that I should be sure to add following references for the project:
Windows Desktop Extensions for the UWP
Windows Mobile Extensions for the UWP
But I've only the first one, not the second. Maybe it's related to the installation issue?
I'm new to Xamarin and UWP, but UWP should be run to both Mobile devices and desktops, so why I have this behaviour? and what I can try to solve the installation problem that's probably related to this?
So, at the end, what I can try in order to fix the installation and allows the xamarin UWP project to run correctly in the local machine?
If I run the application from the Mobile emulator, it starts without problems.
According to your error message, it seems you are using StatusBar in your project.
While using StatusBar, please note that this is not a Universal API, this class can be only used in Mobile Device. Because status bar only exists in Mobile devices, there is no such thing in desktop, table or IoT devices. So if you use this class on Local Machine, you will get an error, but in Mobile Emulator, it can work without problems.
For more info, please see Requirements section of StatusBar.
Usually, when using StatusBar, we would use it with Runtime API check like following:
Windows.UI.ViewManagement.StatusBar statusBar = null;
if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.UI.ViewManagement.StatusBar"))
{
statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView();
}
if (statusBar != null)
{
//TODO
}
On Local Machine, as there is no StatusBar, ApiInformation.IsTypePresent method will return false. This will help us avoid the error. For more info, please see Write adaptive code.
But I've only the first one, not the second. Maybe it's related to the installation issue?
I'm not sure why you can't find the Windows Mobile Extensions for the UWP. But if you have used StatusBar and can build and run your project in Mobile Emulator, then you must have referenced Windows Mobile Extensions for the UWP. Without this extension, we can't use StatusBar and the build will fail.
Depending on the SDK you've installed, you can find following extensions in Reference Manager (Right click "References" in your project and then select "Add Reference" → "Universal Windows" → "Extensions").
I'd suggest you create a new Blank App (Universal Windows) project with Visual Studio to see if you have both the Desktop Extensions and Mobile Extensions. If you still have problem in new Blank App, I'd suggest you use Visual Studio Uninstaller to uninstall Visual Studio completely and also check the Control Panel to make sure you have uninstall all related stuffs like the SDKs. Then you can try to reinstall Visual Studio to see if it works.

Xamarin Studio - Application not launching in simulator

I am new to Xamarin and i am trying to the sample app "XamarinStone". I can see the emulator is launching, but the application is not loading.
I kept at the same state for 1 hour, but still no hope.
I tried with Visual Studio 2012, but I am facing the same issue.
i installed all the necessary applications as per Xamarin Installer. What else I would need to do?
Can anyone help me to troubleshoot the issue.
Thanks!!
Could you please confirm that you've setup Xamarin latest version in both Windows & Mac PC?
And as per below screenshot of Visual Studio, you see list of iPhone Simulators?
And as per the second highlighted image "Show iOS Simulator" button, when you click on that image, it invokes iOS simulator on your MAC?

phonegap(cordova) not working on Windows phone 7

Hey I have just started with windows phone development for phonegap. I have followed all the instructions in the getting started guide and created a phonegap application in visual studio. But when I run the simulator the index.html is never displayed.
I have even tried to redirect from MainPAge.xaml to index.html but no use. Also I have searched a lot of forums but most of them have inadequate information.
Could someone tell me why this is happening? I'm using VS 2010 and phoneGap 2.5.
Any kind of help will be appreciated.

Resources