Monday, May 14, 2018

How to prevent little black boxes not to be displayed in Simulator.

Disable Visual Studio  extra debug option
Try unchecking this option:
Tools > Options > Debugging > General > Enable UI Debugging Tools for XAML > Show runtime tools in the application

This will help in getting good screenshots because the little black boxes are displayed in Simulator.

Friday, May 4, 2018

Unable to launch Windows Simulator on machine

For microsoft account users:

C:\Windows\System32\runas.exe /user:MyEmailaddress@Sample.com "C:\Program Files (x86)\Common Files\microsoft shared\Windows Simulator\15.0\Microsoft.Windows.Simulator.exe"

You can either copy the command to cmd or create a shortcut.

Thursday, May 3, 2018

The breakpoint will not currently be hit. No symbols have been loaded

In Visual Studio:
Go to properties of portable solution. Build->Advanced->Debugging Information and change it from portable to full

Thursday, November 9, 2017

XAML Compilation

Using the XAML compiler to increase the performance of a Xamarin.Forms app

XAML can be optionally compiled directly into intermediate language (IL) with the XAML compiler (XAMLC).
XAMLC offers a number of a benefits:
It performs compile-time checking of XAML, notifying the user of any errors.
It removes some of the load and instantiation time for XAML elements.


XAMLC is disabled by default to ensure backwards compatibility. It can be enabled at both the assembly and class level by adding the XamlCompilation attribute.

The following code example demonstrates enabling XAMLC at the assembly level:

It helps to reduce the file size of the final assembly by no longer including .xaml files.

The following code example demonstrates enabling XAMLC at the assembly level:
using Xamarin.Forms.Xaml;
[assembly: XamlCompilation(XamlCompilationOptions.Compile)]You can also enable XAMLC at the class level


How to prevent little black boxes not to be displayed in Simulator.

Disable Visual Studio  extra debug option Try unchecking this option: Tools > Options > Debugging > General > Enable UI Debug...