| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <?xml version="1.0" encoding="UTF-8"?>
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
- targetNamespace="ui-layout-winforms-controls"
- xmlns:tns="ui-layout-winforms-controls"
- xmlns:basic="ui-layout-basic-controls"
- elementFormDefault="qualified"
- version="1.2">
- <!-- Import basic controls -->
- <xs:import namespace="ui-layout-basic-controls" schemaLocation="ui-layout-basic-controls.xsd"/>
- <!-- WinForms Control Instance Type -->
- <xs:complexType name="WinFormsControlInstanceType" mixed="true">
- <xs:group ref="tns:WinFormsControlContentGroup" minOccurs="0" maxOccurs="unbounded"/>
- <xs:anyAttribute processContents="lax"/>
- </xs:complexType>
- <!-- WinForms Control Content Group -->
- <xs:group name="WinFormsControlContentGroup">
- <xs:choice>
- <!-- Include all basic controls -->
- <xs:group ref="basic:BasicControlContentGroup"/>
-
- <!-- WinForms-Specific Controls -->
- <xs:element name="RichTextBox" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="MaskedTextBox" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="CheckedListBox" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="GroupBox" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="SplitContainer" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="TableLayoutPanel" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="FlowLayoutPanel" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="DataGridView" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="ProgressBar" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="StatusStrip" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="MenuStrip" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="ToolStrip" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="ContextMenuStrip" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="NumericUpDown" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="DateTimePicker" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="MonthCalendar" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="TrackBar" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="HScrollBar" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="VScrollBar" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="PictureBox" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="Timer" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="OpenFileDialog" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="SaveFileDialog" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="FolderBrowserDialog" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="ColorDialog" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="FontDialog" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="PrintDialog" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="PrintPreviewDialog" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="WebBrowser" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="NotifyIcon" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="ErrorProvider" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="ToolTip" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="HelpProvider" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="LinkLabel" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="TabPage" type="tns:WinFormsControlInstanceType"/>
-
- <!-- WinForms ToolStrip Items -->
- <xs:element name="ToolStripMenuItem" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="ToolStripButton" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="ToolStripLabel" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="ToolStripSeparator" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="ToolStripComboBox" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="ToolStripTextBox" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="ToolStripStatusLabel" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="ToolStripProgressBar" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="ToolStripDropDownButton" type="tns:WinFormsControlInstanceType"/>
- <xs:element name="ToolStripSplitButton" type="tns:WinFormsControlInstanceType"/>
-
- <!-- WinForms-specific supporting elements -->
- <xs:element name="tabpages" type="tns:TabPagesType"/>
- <xs:element name="panels" type="tns:PanelsType"/>
- <xs:element name="table-layout" type="tns:TableLayoutType"/>
- </xs:choice>
- </xs:group>
- <!-- WinForms-specific supporting types -->
- <xs:complexType name="TabPagesType">
- <xs:sequence>
- <xs:element name="tabpage" maxOccurs="unbounded">
- <xs:complexType>
- <xs:attribute name="name" type="xs:string" use="required"/>
- <xs:attribute name="text" type="xs:string" use="required"/>
- <xs:attribute name="tooltip" type="xs:string"/>
- <xs:attribute name="imageindex" type="xs:int" default="-1"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="PanelsType">
- <xs:sequence>
- <xs:element name="panel" maxOccurs="2">
- <xs:complexType>
- <xs:attribute name="name" type="xs:string" use="required"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="TableLayoutType">
- <xs:sequence>
- <xs:element name="columns" type="tns:TableColumnsType"/>
- <xs:element name="rows" type="tns:TableRowsType"/>
- <xs:element name="cells" type="tns:CellsType"/>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="TableColumnsType">
- <xs:sequence>
- <xs:element name="column" maxOccurs="unbounded">
- <xs:complexType>
- <xs:attribute name="sizetype" type="xs:string" use="required"/>
- <xs:attribute name="size" type="xs:string" use="required"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="TableRowsType">
- <xs:sequence>
- <xs:element name="row" maxOccurs="unbounded">
- <xs:complexType>
- <xs:attribute name="sizetype" type="xs:string" use="required"/>
- <xs:attribute name="size" type="xs:string" use="required"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="CellsType">
- <xs:sequence>
- <xs:element name="cell" maxOccurs="unbounded">
- <xs:complexType>
- <xs:attribute name="column" type="xs:int" use="required"/>
- <xs:attribute name="row" type="xs:int" use="required"/>
- <xs:attribute name="columnspan" type="xs:int" default="1"/>
- <xs:attribute name="rowspan" type="xs:int" default="1"/>
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- </xs:schema>
|