November 29, 2012

Use some asp controls into a XAML control

Here is a small tips to use the standard asp controls in a xaml application.

You just need to add this line into the xamlControls declaration:
xmlns:asp="http://www.sitecore.net/microsoft/webcontrols"

Here is a small example:

<xamlControls
  xmlns:x="http://www.sitecore.net/xaml"
  xmlns:ajax="http://www.sitecore.net/ajax"
  xmlns:rest="http://www.sitecore.net/rest"
  xmlns:r="http://www.sitecore.net/renderings"
  xmlns:xmlcontrol="http://www.sitecore.net/xmlcontrols"
  xmlns:p="http://schemas.sitecore.net/Visual-Studio-Intellisense"
  xmlns:asp="http://www.sitecore.net/microsoft/webcontrols"
  xmlns:html="http://www.sitecore.net/microsoft/htmlcontrols"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:wfm="http://www.sitecore.net/wfm/webcontrols">
   <MyNamespace.MyClass x:inherits="MyNamespace.MyClass, MyNamespace">
  <asp:TextBox ID="tMyTextBox" runat="server" Width="97%"/>
   </MyNamespace.MyClass>
</xamlControls>

No comments:

Post a Comment