windows-controls.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!-- Example: windows-controls.xml -->
  2. <?xml version="1.0" encoding="UTF-8" ?>
  3. <patterns xmlns="ui-layout-patterns">
  4. <!-- Windows-specific controls -->
  5. <control name="RichTextBox" type="input" category="windows-specific">
  6. <constraints>
  7. <allowed-parents>Panel,FormField</allowed-parents>
  8. <allowed-children>none</allowed-children>
  9. <container>false</container>
  10. </constraints>
  11. <attributes>
  12. <attribute name="rtf-content" type="string" default="" />
  13. <attribute name="enable-auto-url-detect" type="bool" default="true" />
  14. <attribute name="word-wrap" type="bool" default="true" />
  15. <attribute name="show-selection-margin" type="bool" default="false" />
  16. </attributes>
  17. <behavior>
  18. <event name="text-changed" />
  19. <event name="selection-changed" />
  20. </behavior>
  21. </control>
  22. <control name="PropertyGrid" type="data" category="windows-specific">
  23. <constraints>
  24. <allowed-parents>Panel</allowed-parents>
  25. <allowed-children>property-categories</allowed-children>
  26. <container>true</container>
  27. </constraints>
  28. <attributes>
  29. <attribute name="selected-object" type="object" default="null" />
  30. <attribute name="property-sort" type="enum" values="alphabetical,categorized,none" default="categorized" />
  31. <attribute name="help-visible" type="bool" default="true" />
  32. </attributes>
  33. <structure>
  34. <property-categories>
  35. <category name="" display-name="" expanded="true" />
  36. </property-categories>
  37. </structure>
  38. </control>
  39. <control name="NotifyIcon" type="system" category="windows-specific">
  40. <constraints>
  41. <allowed-parents>window</allowed-parents>
  42. <allowed-children>context-menu</allowed-children>
  43. <container>false</container>
  44. </constraints>
  45. <attributes>
  46. <attribute name="icon" type="icon" required="true" />
  47. <attribute name="tooltip-text" type="string" default="" />
  48. <attribute name="visible" type="bool" default="false" />
  49. <attribute name="balloon-tip-title" type="string" default="" />
  50. </attributes>
  51. <behavior>
  52. <event name="click" />
  53. <event name="double-click" />
  54. <event name="balloon-tip-clicked" />
  55. </behavior>
  56. </control>
  57. </patterns>