Getting Started

Invoking Native Code

Include in Your Project

NativeObject

Platform-Specific

Real-World Examples

Using Native UI

Docking

Overlaying

Fullscreen

Widget

Floating

Navigation

Styling Native Controls

Working with Images

Native UI Layout

Panels

Properties

Writing Platform-Specific Code

Security

UI Framework Reference

Layout Panels

Controls

Ace

Platform Helpers

NativeObject

Examples

Troubleshooting Errors

Troubleshooting Errors

Failure to load/navigate to .xaml file

Symptoms:

On iOS: “Compiled markup file filename.xbf does not exist.”

On Android: “java.io.FileNotFoundException: www/xbf/filename.xbf”

Resolution:

In order for a .xaml file to be found at runtime, it had to have been compiled to an .xbf file at build-time then placed in the www/xbf folder. This happens automatically in Visual Studio if you add the custom build task as described in Getting Started.

If you don’t use the Visual Studio support, you can instead compile your XAML from a command prompt by running markupcompiler.exe from the plugin’s markupcompiler subfolder, then copy the .xbf files to the www/xbf folder.

Currently, XAML compilation is Windows-only (version 8.1 or later), so if you do your development on a Mac, you’d need to generate the .xbf files on Windows and then copy them over to your Mac. Of course, the use of XAML is optional. Everything you declare in XAML can be expressed in JavaScript by instantiating the same objects and setting the same properties, which appear as setPropertyName methods.