#69 – Internet Explorer Can Interpret XAML Directly

XAML is not code to be executed, but a definition of a user interface that can be parsed by a tool that understands it.  You can load a .xaml file directly into Internet Explorer and it will render the user interface elements defined by the XAML.

For example, consider the following XAML fragment.

<StackPanel xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" >
    <Button Content="Click Me" Height="23" Width="75"/>
</StackPanel>

You can save this fragment to a .xaml file and load it into Internet Explorer.  The browser will then interpret the XAML and render the user interface that it describes:

Advertisements

About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: