![]() ![]() |
The article assumes that you already know how to edit the Sitecore client to create and add a regular .html application (if not, please read the Editing the Sitecore client and Adding an Application Shortcut, and Creating XML application articles). Adding an XML application implements the same principles.
Open the Layout Studio and select File » New » XML Layout to create a new XML Layout. For this example, we call the layout ‘XmlPlayground’. Sitecore will automatically generate the following template:
Note: make sure to place the xml file in the /layouts folder. Otherwise you will need to update the controlSources section of web.config.
<control >
<XmlPlayground>
<FormPage>
<CodeBeside Type="My.XmlPlaygroundForm,XmlPlayground.dll"/>
</FormPage>
</XmlPlayground>
</control>
This code defines the main page of your application and binds a code-beside class to it. We will learn more about the code-beside class in the next section.
Now follow the procedure described in Adding an Application Shortcut to create an application using the XAML layout you’ve just created. Create an application shortcut and point it to the application.
![](/SdnArchive/images/sdn5/prev.gif)
![](/SdnArchive/images/sdn5/next.gif)