xaml

Type: String

Availability: Read or write at any time

The xaml property of the JadeXamlControl class contains the Windows Presentation Foundation (WPF) definition of the content of the control. The definition is written in the Extensible Application Markup Language (XAML).

The content is compiled and added as a child of the WPF DockPanel parent of the control. The content can be a single or composite WPF entity. If the control has an existing definition, setting the xaml property discards the existing definition and replaces it with the new definition.

The value of the xaml property must include an XML Name Space (XMLNS) definition that defines the name space necessary for the definition to be successfully compiled according to the WPF installation of the user.

Currently Windows does not support XAML that includes event definitions.

The following example shows how the xaml property is set at runtime.

xamlControl.xaml :=
    '<Canvas Name="SimpleExample"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
        <Button Canvas.Top="20" Canvas.Left="50" Content="Hello World" />
    </Canvas>';