Parcourir la source

fix abstract-controls.xml

Dalibor Votruba il y a 11 mois
Parent
commit
8e6e65df9f
1 fichiers modifiés avec 323 ajouts et 303 suppressions
  1. 323 303
      UILayoutDefinitionFormat/Definitions/abstract-controls.xml

+ 323 - 303
UILayoutDefinitionFormat/Definitions/abstract-controls.xml

@@ -1,17 +1,17 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- ENHANCED Abstract Control Definitions for UI Layout Definition Format -->
+<!-- Abstract Control Definitions for UI Layout Definition Format -->
+<!-- Version: 1.0 -->
 <patterns xmlns="ui-layout-patterns">
   
-  <!-- ENHANCEMENT: Base abstract control with data binding and accessibility -->
+  <!-- Base Abstract Control -->
   <control name="CommonControl" type="base" category="abstract">
-    <description>Base abstract control defining common attributes including data binding and accessibility</description>
+    <description>Base abstract control defining common attributes for all UI controls</description>
     <constraints>
       <allowed-parents>any</allowed-parents>
       <allowed-children>depends-on-implementation</allowed-children>
       <container>depends-on-implementation</container>
     </constraints>
     <attributes>
-      <!-- Original attributes -->
       <attribute name="name" type="string" required="true" />
       <attribute name="enabled" type="bool" default="true" />
       <attribute name="text" type="string" default="" />
@@ -19,211 +19,173 @@
       <attribute name="data-source" type="string" default="" />
       <attribute name="dock" type="enum" values="none,left,right,top,bottom" default="none" />
       <attribute name="tooltip" type="string" default="" />
-      
-      <!-- ENHANCEMENT: Data Binding Support -->
-      <attribute name="data-context" type="string" default="" />
-      <attribute name="binding-path" type="string" default="" />
-      <attribute name="command-binding" type="string" default="" />
-      <attribute name="validation-rule" type="string" default="" />
-      <attribute name="converter" type="string" default="" />
-      <attribute name="binding-mode" type="enum" values="OneWay,TwoWay,OneTime,OneWayToSource" default="TwoWay" />
-      
-      <!-- ENHANCEMENT: Accessibility Support -->
-      <attribute name="aria-label" type="string" default="" />
-      <attribute name="aria-description" type="string" default="" />
-      <attribute name="aria-role" type="string" default="" />
-      <attribute name="aria-live" type="enum" values="off,polite,assertive" default="off" />
+      <attribute name="width" type="int" min="0" max="2000" />
+      <attribute name="height" type="int" min="0" max="2000" />
+      <attribute name="x" type="int" />
+      <attribute name="y" type="int" />
+      <attribute name="anchor" type="enum" values="none,left,right,top,bottom,all" default="none" />
+      <attribute name="margin" type="string" default="0,0,0,0" />
+      <attribute name="padding" type="string" default="0,0,0,0" />
+      <attribute name="background-color" type="string" default="transparent" />
+      <attribute name="foreground-color" type="string" default="black" />
+      <attribute name="font-family" type="string" default="system" />
+      <attribute name="font-size" type="int" min="6" max="72" default="12" />
+      <attribute name="font-style" type="enum" values="normal,italic,bold,bold-italic" default="normal" />
       <attribute name="tab-index" type="int" default="0" />
       <attribute name="access-key" type="string" default="" />
-      <attribute name="high-contrast-support" type="bool" default="true" />
-      <attribute name="screen-reader-text" type="string" default="" />
-      
-      <!-- ENHANCEMENT: Version Compatibility -->
-      <attribute name="min-version" type="string" default="1.0" />
-      <attribute name="max-version" type="string" default="2.0" />
-      <attribute name="deprecated-in" type="string" default="" />
-      <attribute name="replaced-by" type="string" default="" />
     </attributes>
-  </control>
-  
-  <!-- ENHANCEMENT: StatusBar Control (was missing) -->
-  <control name="StatusBar" type="container" category="layout" inherits="CommonControl">
-    <description>Status bar container for displaying application status information</description>
-    <constraints>
-      <allowed-parents>Panel,window</allowed-parents>
-      <allowed-children>items,context-menu</allowed-children>
-      <container>true</container>
-      <max-children>unlimited</max-children>
-      <requires-structure>items</requires-structure>
-    </constraints>
-    <attributes>
-      <attribute name="show-panels" type="bool" default="true" />
-      <attribute name="sizing-grip" type="bool" default="true" />
-      <attribute name="height" type="int" default="22" min="16" max="50" />
-      <attribute name="dock-position" type="enum" values="bottom,top" default="bottom" />
-      <attribute name="auto-size-panels" type="bool" default="true" />
-    </attributes>
-    <structure>
-      <items min-count="0" max-count="unlimited">
-        <status-item>
-          <control-ref allowed-types="Label,Image,ComboBox,Button,ProgressBar" />
-        </status-item>
-      </items>
-      <context-menu max-count="1" />
-    </structure>
+    <behavior>
+      <event name="click" />
+      <event name="double-click" />
+      <event name="mouse-enter" />
+      <event name="mouse-leave" />
+      <event name="key-press" />
+      <event name="focus" />
+      <event name="blur" />
+    </behavior>
   </control>
 
-  <!-- ENHANCEMENT: ProgressBar Control -->
-  <control name="ProgressBar" type="display" category="basic" inherits="CommonControl">
-    <description>Progress indicator control with enhanced features</description>
+  <!-- DISPLAY CONTROLS -->
+  
+  <control name="Label" type="display" category="basic" inherits="CommonControl">
+    <description>Text display control for showing read-only text information</description>
     <constraints>
-      <allowed-parents>Panel,SplitPanel,StatusBar,FormField</allowed-parents>
+      <allowed-parents>Panel,SplitPanel,StatusBar,ToolBar,FormField</allowed-parents>
       <allowed-children>none</allowed-children>
       <container>false</container>
     </constraints>
     <attributes>
-      <attribute name="minimum" type="int" default="0" />
-      <attribute name="maximum" type="int" default="100" />
-      <attribute name="value" type="int" default="0" />
-      <attribute name="step" type="int" default="1" />
-      <attribute name="style" type="enum" values="blocks,continuous,marquee" default="continuous" />
-      <attribute name="orientation" type="enum" values="horizontal,vertical" default="horizontal" />
-      <attribute name="show-text" type="bool" default="false" />
-      <attribute name="text-format" type="string" default="{0}%" />
-      <attribute name="indeterminate" type="bool" default="false" />
-      <attribute name="animation-speed" type="int" default="100" min="0" max="1000" />
-      <attribute name="color" type="color" default="#0078d4" />
-      <attribute name="background-color" type="color" default="#f0f0f0" />
+      <attribute name="auto-size" type="bool" default="true" />
+      <attribute name="text-align" type="enum" values="left,center,right,justify" default="left" />
+      <attribute name="vertical-align" type="enum" values="top,middle,bottom" default="middle" />
+      <attribute name="word-wrap" type="bool" default="false" />
+      <attribute name="use-mnemonic" type="bool" default="true" />
+      <attribute name="associated-control" type="string" default="" />
     </attributes>
     <behavior>
-      <event name="value-changed" />
-      <event name="progress-completed" />
+      <event name="text-changed" />
     </behavior>
   </control>
 
-  <!-- ENHANCEMENT: DatePicker Control -->
-  <control name="DatePicker" type="input" category="basic" inherits="CommonControl">
-    <description>Date selection control with calendar popup</description>
+  <control name="Separator" type="visual" category="basic" inherits="CommonControl">
+    <description>Visual separator control for dividing interface sections</description>
     <constraints>
-      <allowed-parents>Panel,SplitPanel,FormField</allowed-parents>
+      <allowed-parents>Panel,SplitPanel,StatusBar,ToolBar,Menu</allowed-parents>
       <allowed-children>none</allowed-children>
       <container>false</container>
     </constraints>
     <attributes>
-      <attribute name="selected-date" type="date" default="null" />
-      <attribute name="min-date" type="date" default="1900-01-01" />
-      <attribute name="max-date" type="date" default="2100-12-31" />
-      <attribute name="format" type="string" default="yyyy-MM-dd" />
-      <attribute name="placeholder-text" type="string" default="" />
-      <attribute name="show-calendar-button" type="bool" default="true" />
-      <attribute name="show-clear-button" type="bool" default="false" />
-      <attribute name="first-day-of-week" type="enum" values="sunday,monday,tuesday,wednesday,thursday,friday,saturday" default="sunday" />
-      <attribute name="highlight-today" type="bool" default="true" />
-      <attribute name="allow-text-input" type="bool" default="true" />
+      <attribute name="orientation" type="enum" values="horizontal,vertical" default="horizontal" />
+      <attribute name="line-style" type="enum" values="solid,dashed,dotted,double,groove,ridge,inset,outset" default="solid" />
+      <attribute name="line-width" type="int" min="1" max="10" default="1" />
+      <attribute name="line-color" type="string" default="gray" />
+      <attribute name="auto-size" type="bool" default="true" />
+      <attribute name="margin-start" type="int" min="0" max="50" default="0" />
+      <attribute name="margin-end" type="int" min="0" max="50" default="0" />
     </attributes>
     <behavior>
-      <event name="date-selected" />
-      <event name="date-changed" />
-      <event name="calendar-opened" />
-      <event name="calendar-closed" />
+      <event name="paint" />
     </behavior>
   </control>
 
-  <!-- ENHANCEMENT: NumericUpDown Control -->
-  <control name="NumericUpDown" type="input" category="basic" inherits="CommonControl">
-    <description>Numeric input control with up/down buttons</description>
+  <control name="Image" type="display" category="basic" inherits="CommonControl">
+    <description>Image display control for showing pictures and graphics</description>
     <constraints>
-      <allowed-parents>Panel,SplitPanel,FormField</allowed-parents>
+      <allowed-parents>Panel,SplitPanel,StatusBar,ToolBar,FormField,Button</allowed-parents>
       <allowed-children>none</allowed-children>
       <container>false</container>
     </constraints>
     <attributes>
-      <attribute name="value" type="decimal" default="0" />
-      <attribute name="minimum" type="decimal" default="0" />
-      <attribute name="maximum" type="decimal" default="100" />
-      <attribute name="increment" type="decimal" default="1" />
-      <attribute name="decimal-places" type="int" default="0" min="0" max="10" />
-      <attribute name="thousands-separator" type="bool" default="false" />
-      <attribute name="format-string" type="string" default="" />
-      <attribute name="show-buttons" type="bool" default="true" />
-      <attribute name="button-position" type="enum" values="right,left" default="right" />
-      <attribute name="wrap-value" type="bool" default="false" />
-      <attribute name="allow-null" type="bool" default="false" />
+      <attribute name="source" type="string" required="true" />
+      <attribute name="source-type" type="enum" values="file,url,resource,base64,stream" default="file" />
+      <attribute name="size-mode" type="enum" values="normal,stretch-image,auto-size,center-image,zoom" default="normal" />
+      <attribute name="aspect-ratio" type="enum" values="ignore,keep,keep-by-expanding" default="keep" />
+      <attribute name="interpolation-mode" type="enum" values="default,low,high,bilinear,bicubic,nearest-neighbor" default="default" />
+      <attribute name="error-image" type="string" default="" />
+      <attribute name="loading-image" type="string" default="" />
+      <attribute name="border-style" type="enum" values="none,single,raised,sunken" default="none" />
+      <attribute name="cursor-hand" type="bool" default="false" />
+      <attribute name="allow-drop" type="bool" default="false" />
+      <attribute name="cache-image" type="bool" default="true" />
+      <attribute name="async-load" type="bool" default="false" />
+      <attribute name="rotation" type="enum" values="none,rotate90,rotate180,rotate270" default="none" />
+      <attribute name="flip" type="enum" values="none,horizontal,vertical,both" default="none" />
+      <attribute name="opacity" type="double" min="0.0" max="1.0" default="1.0" />
+      <attribute name="grayscale" type="bool" default="false" />
+      <attribute name="alt-text" type="string" default="" />
     </attributes>
     <behavior>
-      <event name="value-changed" />
-      <event name="increment" />
-      <event name="decrement" />
+      <event name="image-loaded" />
+      <event name="image-load-error" />
+      <event name="image-load-progress" />
+      <event name="size-changed" />
     </behavior>
   </control>
 
-  <!-- ENHANCEMENT: Slider Control -->
-  <control name="Slider" type="input" category="basic" inherits="CommonControl">
-    <description>Range slider control for selecting numeric values</description>
+  <!-- INPUT CONTROLS -->
+  
+  <control name="TextBox" type="input" category="basic" inherits="CommonControl">
+    <description>Single-line text input control for user text entry</description>
     <constraints>
-      <allowed-parents>Panel,SplitPanel,FormField</allowed-parents>
+      <allowed-parents>Panel,SplitPanel,StatusBar,ToolBar,FormField</allowed-parents>
       <allowed-children>none</allowed-children>
       <container>false</container>
     </constraints>
     <attributes>
-      <attribute name="value" type="double" default="0" />
-      <attribute name="minimum" type="double" default="0" />
-      <attribute name="maximum" type="double" default="100" />
-      <attribute name="step" type="double" default="1" />
-      <attribute name="orientation" type="enum" values="horizontal,vertical" default="horizontal" />
-      <attribute name="show-ticks" type="bool" default="false" />
-      <attribute name="tick-frequency" type="double" default="10" />
-      <attribute name="tick-placement" type="enum" values="none,top-left,bottom-right,both" default="bottom-right" />
-      <attribute name="show-value" type="bool" default="false" />
-      <attribute name="value-format" type="string" default="{0}" />
-      <attribute name="snap-to-ticks" type="bool" default="false" />
-      <attribute name="thumb-style" type="enum" values="round,square,custom" default="round" />
+      <attribute name="max-length" type="int" min="0" max="32767" default="32767" />
+      <attribute name="read-only" type="bool" default="false" />
+      <attribute name="multiline" type="bool" default="false" />
+      <attribute name="password-char" type="string" default="" />
+      <attribute name="placeholder-text" type="string" default="" />
+      <attribute name="text-align" type="enum" values="left,center,right" default="left" />
+      <attribute name="accepts-return" type="bool" default="false" />
+      <attribute name="accepts-tab" type="bool" default="false" />
+      <attribute name="word-wrap" type="bool" default="true" />
+      <attribute name="scroll-bars" type="enum" values="none,horizontal,vertical,both" default="none" />
+      <attribute name="auto-complete-mode" type="enum" values="none,suggest,append,suggest-append" default="none" />
+      <attribute name="auto-complete-source" type="string" default="" />
     </attributes>
     <behavior>
-      <event name="value-changed" />
-      <event name="thumb-drag-started" />
-      <event name="thumb-drag-completed" />
+      <event name="text-changed" />
+      <event name="enter-pressed" />
+      <event name="selection-changed" />
+      <event name="validated" />
+      <event name="validating" />
     </behavior>
   </control>
 
-  <!-- ENHANCEMENT: Enhanced TextBox Control -->
-  <control name="TextBox" type="input" category="basic" inherits="CommonControl">
-    <description>Enhanced text input control with validation and data binding</description>
+  <control name="ComboBox" type="input" category="basic" inherits="CommonControl">
+    <description>Dropdown selection control with editable or read-only options</description>
     <constraints>
-      <allowed-parents>Panel,SplitPanel,FormField</allowed-parents>
-      <allowed-children>none</allowed-children>
-      <container>false</container>
+      <allowed-parents>Panel,SplitPanel,StatusBar,ToolBar,FormField</allowed-parents>
+      <allowed-children>ListBoxItem</allowed-children>
+      <container>true</container>
+      <requires-structure>dropdown-items</requires-structure>
     </constraints>
     <attributes>
-      <attribute name="placeholder" type="string" default="" />
-      <attribute name="max-length" type="int" default="255" min="1" max="10000" />
-      <attribute name="readonly" type="bool" default="false" />
-      <attribute name="multiline" type="bool" default="false" />
-      <attribute name="password" type="bool" default="false" />
-      <!-- ENHANCEMENT: Additional input types and features -->
-      <attribute name="input-type" type="enum" values="text,email,url,tel,number,search" default="text" />
-      <attribute name="auto-complete" type="enum" values="off,on,name,email,username,current-password" default="off" />
-      <attribute name="spell-check" type="bool" default="true" />
-      <attribute name="text-transform" type="enum" values="none,uppercase,lowercase,capitalize" default="none" />
-      <attribute name="validation-pattern" type="string" default="" />
-      <attribute name="validation-message" type="string" default="" />
-      <attribute name="required" type="bool" default="false" />
-      <attribute name="auto-focus" type="bool" default="false" />
+      <attribute name="dropdown-style" type="enum" values="dropdown,simple,dropdown-list" default="dropdown" />
+      <attribute name="max-dropdown-items" type="int" min="1" max="30" default="8" />
+      <attribute name="selected-index" type="int" default="-1" />
+      <attribute name="selected-value" type="string" default="" />
+      <attribute name="auto-complete-mode" type="enum" values="none,suggest,append,suggest-append" default="none" />
+      <attribute name="auto-complete-source" type="string" default="" />
+      <attribute name="sorted" type="bool" default="false" />
     </attributes>
     <behavior>
+      <event name="selection-changed" />
+      <event name="dropdown-opened" />
+      <event name="dropdown-closed" />
       <event name="text-changed" />
-      <event name="focus" />
-      <event name="blur" />
-      <event name="enter-pressed" />
-      <!-- ENHANCEMENT: Validation events -->
-      <event name="validation-error" />
-      <event name="validation-success" />
     </behavior>
+    <structure>
+      <dropdown-items max-count="unbounded" />
+    </structure>
   </control>
 
-  <!-- ENHANCEMENT: Enhanced Button Control -->
+  <!-- ACTION CONTROLS -->
+  
   <control name="Button" type="action" category="basic" inherits="CommonControl">
-    <description>Enhanced clickable button control with command binding</description>
+    <description>Clickable button control for user actions</description>
     <constraints>
       <allowed-parents>Panel,SplitPanel,StatusBar,ToolBar,FormField,ButtonBar</allowed-parents>
       <allowed-children>none</allowed-children>
@@ -233,172 +195,181 @@
       <attribute name="type" type="enum" values="text,image,text-image" default="text" />
       <attribute name="image" type="string" default="" />
       <attribute name="image-position" type="enum" values="left,right,top,bottom" default="left" />
-      <attribute name="style" type="enum" values="normal,primary,secondary,danger,success,warning,info,borderless" default="normal" />
-      <!-- ENHANCEMENT: Additional button features -->
-      <attribute name="size" type="enum" values="small,medium,large,extra-large" default="medium" />
+      <attribute name="style" type="enum" values="normal,primary,secondary,danger,success,warning,info" default="normal" />
+      <attribute name="size" type="enum" values="small,medium,large" default="medium" />
       <attribute name="auto-size" type="bool" default="false" />
-      <attribute name="width" type="int" min="20" max="300" />
-      <attribute name="height" type="int" min="20" max="100" />
       <attribute name="is-default" type="bool" default="false" />
       <attribute name="is-cancel" type="bool" default="false" />
-      <attribute name="command-parameter" type="string" default="" />
-      <attribute name="confirm-message" type="string" default="" />
-      <attribute name="loading-text" type="string" default="" />
-      <attribute name="disabled-reason" type="string" default="" />
+      <attribute name="flat-style" type="bool" default="false" />
     </attributes>
     <behavior>
-      <event name="click" alias="on-click" required="true" />
-      <event name="mouse-enter" />
-      <event name="mouse-leave" />
-      <!-- ENHANCEMENT: Command events -->
-      <event name="command-executed" />
-      <event name="command-can-execute-changed" />
+      <event name="click" required="true" />
+      <event name="mouse-down" />
+      <event name="mouse-up" />
     </behavior>
   </control>
 
-  <!-- ENHANCEMENT: Enhanced ComboBox Control -->
-  <control name="ComboBox" type="input" category="basic" inherits="CommonControl">
-    <description>Enhanced dropdown selection control with data binding and filtering</description>
+  <!-- CONTAINER CONTROLS -->
+  
+  <control name="Panel" type="container" category="basic" inherits="CommonControl">
+    <description>Generic container control for grouping other controls</description>
     <constraints>
-      <allowed-parents>Panel,SplitPanel,StatusBar,ToolBar,FormField</allowed-parents>
-      <allowed-children>items</allowed-children>
-      <container>false</container>
-      <requires-structure>items</requires-structure>
+      <allowed-parents>window,Panel,SplitPanel,PopupPanel,TabPage</allowed-parents>
+      <allowed-children>any-control</allowed-children>
+      <container>true</container>
     </constraints>
     <attributes>
-      <attribute name="selected-value" type="string" default="" />
-      <attribute name="selected-index" type="int" default="-1" />
-      <attribute name="editable" type="bool" default="false" />
-      <attribute name="dropdown-height" type="int" default="200" min="100" max="500" />
-      <!-- ENHANCEMENT: Advanced features -->
-      <attribute name="auto-complete" type="bool" default="false" />
-      <attribute name="auto-complete-mode" type="enum" values="none,suggest,append,suggest-append" default="suggest" />
-      <attribute name="filter-mode" type="enum" values="none,starts-with,contains,custom" default="none" />
-      <attribute name="placeholder-text" type="string" default="" />
-      <attribute name="allow-custom-values" type="bool" default="false" />
-      <attribute name="items-source" type="string" default="" />
-      <attribute name="display-member-path" type="string" default="" />
-      <attribute name="value-member-path" type="string" default="" />
-      <attribute name="group-member-path" type="string" default="" />
+      <attribute name="border-style" type="enum" values="none,single,raised,sunken,double" default="none" />
+      <attribute name="border-width" type="int" min="0" max="10" default="0" />
+      <attribute name="border-color" type="string" default="black" />
+      <attribute name="auto-scroll" type="bool" default="false" />
+      <attribute name="layout-type" type="enum" values="absolute,flow,stack,grid" default="absolute" />
+      <attribute name="flow-direction" type="enum" values="left-to-right,right-to-left,top-to-bottom,bottom-to-top" default="left-to-right" />
     </attributes>
     <behavior>
-      <event name="selection-changed" alias="on-select" />
-      <event name="text-changed" />
-      <!-- ENHANCEMENT: Advanced events -->
-      <event name="dropdown-opened" />
-      <event name="dropdown-closed" />
-      <event name="item-filtering" />
+      <event name="paint" />
+      <event name="resize" />
+      <event name="scroll" />
     </behavior>
-    <structure>
-      <items min-count="0" max-count="unlimited">
-        <listbox-item inherits="ListBoxItem" />
-      </items>
-      <selected-items max-count="1" />
-    </structure>
   </control>
 
-  <!-- ENHANCEMENT: Enhanced Panel Control -->
-  <control name="Panel" type="container" category="layout" inherits="CommonControl">
-    <description>Enhanced container panel with advanced layout options</description>
+  <control name="PopupPanel" type="container" category="basic" inherits="Panel">
+    <description>Popup container that displays above other controls</description>
     <constraints>
-      <allowed-parents>Panel,SplitPanel,window,wireframe-instance</allowed-parents>
+      <allowed-parents>window,Panel</allowed-parents>
       <allowed-children>any-control</allowed-children>
       <container>true</container>
-      <max-children>unlimited</max-children>
     </constraints>
     <attributes>
-      <attribute name="border" type="bool" default="false" />
-      <attribute name="border-style" type="enum" values="none,solid,dashed,dotted,double,groove,ridge,inset,outset" default="none" />
-      <!-- ENHANCEMENT: Advanced styling -->
-      <attribute name="border-width" type="int" default="1" min="0" max="10" />
-      <attribute name="border-color" type="color" default="#000000" />
-      <attribute name="border-radius" type="int" default="0" min="0" max="50" />
-      <attribute name="background-color" type="color" default="transparent" />
-      <attribute name="background-image" type="string" default="" />
-      <attribute name="background-repeat" type="enum" values="no-repeat,repeat,repeat-x,repeat-y" default="no-repeat" />
-      <attribute name="padding" type="int" default="0" min="0" max="50" />
-      <attribute name="margin" type="int" default="0" min="0" max="50" />
-      <attribute name="orientation" type="enum" values="horizontal,vertical" default="vertical" />
-      <attribute name="alignment" type="enum" values="left,center,right,stretch,space-between,space-around" default="left" />
-      <attribute name="vertical-alignment" type="enum" values="top,center,bottom,stretch" default="top" />
-      <attribute name="auto-scroll" type="bool" default="false" />
-      <attribute name="scroll-bars" type="enum" values="none,horizontal,vertical,both,auto" default="none" />
-      <attribute name="width" type="int" min="10" max="2000" />
-      <attribute name="height" type="int" min="10" max="2000" />
-      <!-- ENHANCEMENT: Size constraints -->
-      <attribute name="min-width" type="int" default="0" />
-      <attribute name="min-height" type="int" default="0" />
-      <attribute name="max-width" type="int" default="0" />
-      <attribute name="max-height" type="int" default="0" />
-      <attribute name="overflow" type="enum" values="visible,hidden,scroll,auto" default="visible" />
-      <attribute name="z-index" type="int" default="0" />
-      <attribute name="layout-mode" type="enum" values="flow,grid,flex,absolute" default="flow" />
+      <attribute name="popup-mode" type="enum" values="modal,modeless,tooltip" default="modeless" />
+      <attribute name="auto-close" type="bool" default="true" />
+      <attribute name="close-on-escape" type="bool" default="true" />
+      <attribute name="close-on-click-outside" type="bool" default="true" />
+      <attribute name="show-close-button" type="bool" default="false" />
+      <attribute name="resizable" type="bool" default="false" />
+      <attribute name="movable" type="bool" default="false" />
+      <attribute name="fade-in" type="bool" default="false" />
+      <attribute name="fade-out" type="bool" default="false" />
+      <attribute name="animation-duration" type="int" min="0" max="2000" default="200" />
+    </attributes>
+    <behavior>
+      <event name="popup-opened" />
+      <event name="popup-closed" />
+      <event name="popup-opening" />
+      <event name="popup-closing" />
+    </behavior>
+  </control>
+
+  <!-- NAVIGATION CONTROLS -->
+  
+  <control name="Menu" type="navigation" category="basic" inherits="CommonControl">
+    <description>Menu control for application navigation and commands</description>
+    <constraints>
+      <allowed-parents>window,Panel,ToolBar</allowed-parents>
+      <allowed-children>MenuItem</allowed-children>
+      <container>true</container>
+      <requires-structure>menu-items</requires-structure>
+    </constraints>
+    <attributes>
+      <attribute name="orientation" type="enum" values="horizontal,vertical" default="horizontal" />
+      <attribute name="show-check-margin" type="bool" default="true" />
+      <attribute name="show-image-margin" type="bool" default="true" />
+      <attribute name="right-to-left" type="bool" default="false" />
     </attributes>
+    <behavior>
+      <event name="menu-activate" />
+      <event name="menu-deactivate" />
+      <event name="menu-collapse" />
+    </behavior>
     <structure>
-      <children allow-multiple="true" />
+      <menu-items max-count="unbounded" />
     </structure>
   </control>
 
-  <!-- ENHANCEMENT: Enhanced ListView Control -->
-  <control name="ListView" type="data" category="basic" inherits="CommonControl">
-    <description>Enhanced list view control with advanced data binding and virtualization</description>
+  <!-- LIST CONTROLS -->
+  
+  <control name="ListView" type="list" category="basic" inherits="CommonControl">
+    <description>List view control for displaying data in various view modes</description>
     <constraints>
-      <allowed-parents>Panel,SplitPanel,FormField</allowed-parents>
-      <allowed-children>columns,items,context-menu</allowed-children>
-      <container>false</container>
-      <requires-structure>columns,items</requires-structure>
+      <allowed-parents>Panel,SplitPanel,PopupPanel,TabPage</allowed-parents>
+      <allowed-children>ListViewItem,ColumnItem</allowed-children>
+      <container>true</container>
+      <requires-structure>list-items,columns</requires-structure>
     </constraints>
     <attributes>
-      <attribute name="view-mode" type="enum" values="list,details,icons,tiles,cards" default="details" />
+      <attribute name="view-mode" type="enum" values="details,list,large-icons,small-icons,tiles" default="details" />
       <attribute name="multi-select" type="bool" default="false" />
-      <attribute name="selection-mode" type="enum" values="none,single,multiple,extended" default="single" />
-      <attribute name="grid-lines" type="bool" default="true" />
-      <attribute name="full-row-select" type="bool" default="true" />
-      <attribute name="sort-column" type="string" default="" />
-      <attribute name="sort-direction" type="enum" values="asc,desc" default="asc" />
-      <!-- ENHANCEMENT: Advanced features -->
-      <attribute name="allow-column-reorder" type="bool" default="true" />
-      <attribute name="allow-column-resize" type="bool" default="true" />
-      <attribute name="virtualization-enabled" type="bool" default="false" />
-      <attribute name="items-source" type="string" default="" />
-      <attribute name="selected-items-binding" type="string" default="" />
-      <attribute name="current-item-binding" type="string" default="" />
-      <attribute name="filter-expression" type="string" default="" />
-      <attribute name="group-by" type="string" default="" />
-      <attribute name="page-size" type="int" default="0" min="0" max="1000" />
-      <attribute name="loading-message" type="string" default="Loading..." />
-      <attribute name="empty-message" type="string" default="No items to display" />
+      <attribute name="full-row-select" type="bool" default="false" />
+      <attribute name="grid-lines" type="bool" default="false" />
+      <attribute name="header-style" type="enum" values="none,clickable,non-clickable" default="clickable" />
+      <attribute name="sorting" type="enum" values="none,ascending,descending" default="none" />
+      <attribute name="allow-column-reorder" type="bool" default="false" />
+      <attribute name="hover-selection" type="bool" default="false" />
+      <attribute name="hot-tracking" type="bool" default="false" />
+      <attribute name="virtual-mode" type="bool" default="false" />
+      <attribute name="virtual-list-size" type="int" min="0" default="0" />
     </attributes>
     <behavior>
-      <event name="selection-changed" alias="on-select" />
-      <event name="item-double-click" />
+      <event name="selected-index-changed" />
+      <event name="item-activate" />
       <event name="column-click" />
-      <!-- ENHANCEMENT: Advanced events -->
-      <event name="column-header-click" />
-      <event name="items-loading" />
-      <event name="items-loaded" />
-      <event name="filter-changed" />
-      <event name="sort-changed" />
+      <event name="before-label-edit" />
+      <event name="after-label-edit" />
+      <event name="item-check" />
+      <event name="virtual-items-selection-range-changed" />
+    </behavior>
+    <structure>
+      <list-items max-count="unbounded" />
+      <columns max-count="50" />
+    </structure>
+  </control>
+
+  <control name="TreeView" type="list" category="basic" inherits="CommonControl">
+    <description>Hierarchical tree view control for displaying nested data</description>
+    <constraints>
+      <allowed-parents>Panel,SplitPanel,PopupPanel,TabPage</allowed-parents>
+      <allowed-children>TreeNode</allowed-children>
+      <container>true</container>
+      <requires-structure>tree-nodes</requires-structure>
+    </constraints>
+    <attributes>
+      <attribute name="show-lines" type="bool" default="true" />
+      <attribute name="show-plus-minus" type="bool" default="true" />
+      <attribute name="show-root-lines" type="bool" default="true" />
+      <attribute name="has-check-boxes" type="bool" default="false" />
+      <attribute name="full-row-select" type="bool" default="false" />
+      <attribute name="hot-tracking" type="bool" default="false" />
+      <attribute name="hide-selection" type="bool" default="true" />
+      <attribute name="label-edit" type="bool" default="false" />
+      <attribute name="scrollable" type="bool" default="true" />
+      <attribute name="sorted" type="bool" default="false" />
+      <attribute name="path-separator" type="string" default="\" />
+      <attribute name="indent" type="int" min="10" max="50" default="19" />
+      <attribute name="item-height" type="int" min="10" max="50" default="16" />
+    </attributes>
+    <behavior>
+      <event name="after-check" />
+      <event name="after-collapse" />
+      <event name="after-expand" />
+      <event name="after-label-edit" />
+      <event name="after-select" />
+      <event name="before-check" />
+      <event name="before-collapse" />
+      <event name="before-expand" />
+      <event name="before-label-edit" />
+      <event name="before-select" />
+      <event name="node-mouse-click" />
+      <event name="node-mouse-double-click" />
     </behavior>
     <structure>
-      <columns min-count="1" max-count="20">
-        <column-item inherits="ColumnItem" />
-      </columns>
-      <items min-count="0" max-count="unlimited">
-        <listview-item>
-          <values>
-            <value column="" text="" />
-          </values>
-        </listview-item>
-      </items>
-      <selected-items max-count="depends-on-multi-select" />
-      <context-menu max-count="1" />
+      <tree-nodes max-count="unbounded" />
     </structure>
   </control>
 
-  <!-- ENHANCEMENT: Enhanced structure definitions -->
+  <!-- STRUCTURAL DEFINITIONS -->
+  
   <structure name="ListBoxItem" type="data-item" category="basic">
-    <description>Enhanced individual item within list-based controls</description>
+    <description>Individual item within list-based controls</description>
     <attributes>
       <attribute name="value" type="string" required="true" />
       <attribute name="text" type="string" required="true" />
@@ -406,17 +377,32 @@
       <attribute name="enabled" type="bool" default="true" />
       <attribute name="image" type="string" default="" />
       <attribute name="tooltip" type="string" default="" />
-      <!-- ENHANCEMENT: Data binding and accessibility -->
-      <attribute name="data-context" type="string" default="" />
-      <attribute name="command" type="string" default="" />
-      <attribute name="command-parameter" type="string" default="" />
-      <attribute name="aria-label" type="string" default="" />
+      <attribute name="tag" type="object" default="null" />
+    </attributes>
+  </structure>
+
+  <structure name="ListViewItem" type="data-item" category="basic">
+    <description>Individual item within ListView control</description>
+    <attributes>
+      <attribute name="text" type="string" required="true" />
+      <attribute name="value" type="string" default="" />
+      <attribute name="selected" type="bool" default="false" />
+      <attribute name="checked" type="bool" default="false" />
+      <attribute name="focused" type="bool" default="false" />
+      <attribute name="image-index" type="int" default="-1" />
+      <attribute name="image-key" type="string" default="" />
+      <attribute name="state-image-index" type="int" default="-1" />
       <attribute name="group" type="string" default="" />
+      <attribute name="use-item-style-for-sub-items" type="bool" default="true" />
+      <attribute name="tag" type="object" default="null" />
     </attributes>
+    <structure>
+      <sub-items max-count="unbounded" />
+    </structure>
   </structure>
 
   <structure name="ColumnItem" type="data-item" category="basic">
-    <description>Enhanced column definition for ListView control</description>
+    <description>Column definition for ListView control</description>
     <attributes>
       <attribute name="name" type="string" required="true" />
       <attribute name="text" type="string" required="true" />
@@ -424,23 +410,57 @@
       <attribute name="sortable" type="bool" default="true" />
       <attribute name="visible" type="bool" default="true" />
       <attribute name="alignment" type="enum" values="left,center,right" default="left" />
-      <attribute name="data-type" type="enum" values="text,number,date,boolean,image,custom" default="text" />
-      <!-- ENHANCEMENT: Advanced data binding -->
-      <attribute name="binding-path" type="string" default="" />
-      <attribute name="converter" type="string" default="" />
+      <attribute name="data-type" type="enum" values="text,number,date,boolean,image" default="text" />
       <attribute name="format-string" type="string" default="" />
-      <attribute name="sort-member-path" type="string" default="" />
-      <attribute name="group-member-path" type="string" default="" />
-      <attribute name="cell-template" type="string" default="" />
-      <attribute name="header-template" type="string" default="" />
-      <attribute name="frozen" type="bool" default="false" />
-      <attribute name="resizable" type="bool" default="true" />
-      <attribute name="aria-label" type="string" default="" />
+      <attribute name="image-index" type="int" default="-1" />
+      <attribute name="tag" type="object" default="null" />
     </attributes>
   </structure>
 
-  <!-- Keep all other existing controls unchanged (Label, TreeView, Menu, etc.) -->
-  <!-- ... (original controls remain the same) ... -->
-  
-</patterns>
-      
+  <structure name="TreeNode" type="data-item" category="basic">
+    <description>Individual node within TreeView control</description>
+    <attributes>
+      <attribute name="text" type="string" required="true" />
+      <attribute name="value" type="string" default="" />
+      <attribute name="expanded" type="bool" default="false" />
+      <attribute name="selected" type="bool" default="false" />
+      <attribute name="checked" type="bool" default="false" />
+      <attribute name="image-index" type="int" default="-1" />
+      <attribute name="image-key" type="string" default="" />
+      <attribute name="selected-image-index" type="int" default="-1" />
+      <attribute name="selected-image-key" type="string" default="" />
+      <attribute name="state-image-index" type="int" default="-1" />
+      <attribute name="state-image-key" type="string" default="" />
+      <attribute name="tool-tip-text" type="string" default="" />
+      <attribute name="context-menu" type="string" default="" />
+      <attribute name="tag" type="object" default="null" />
+    </attributes>
+    <structure>
+      <child-nodes max-count="unbounded" />
+    </structure>
+  </structure>
+
+  <structure name="MenuItem" type="data-item" category="basic">
+    <description>Individual menu item within Menu control</description>
+    <attributes>
+      <attribute name="text" type="string" required="true" />
+      <attribute name="value" type="string" default="" />
+      <attribute name="enabled" type="bool" default="true" />
+      <attribute name="visible" type="bool" default="true" />
+      <attribute name="checked" type="bool" default="false" />
+      <attribute name="checkable" type="bool" default="false" />
+      <attribute name="radio-check" type="bool" default="false" />
+      <attribute name="image" type="string" default="" />
+      <attribute name="shortcut-keys" type="string" default="" />
+      <attribute name="show-shortcut" type="bool" default="true" />
+      <attribute name="merge-type" type="enum" values="add,merge-items,remove,replace" default="add" />
+      <attribute name="merge-order" type="int" default="0" />
+      <attribute name="separator" type="bool" default="false" />
+      <attribute name="tag" type="object" default="null" />
+    </attributes>
+    <structure>
+      <sub-items max-count="unbounded" />
+    </structure>
+  </structure>
+
+</patterns>