This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is the UI Layout Definition Format repository - a comprehensive XML-based format for describing cross-platform user interfaces with inheritance, validation, and modern development practices. Version 1.4 includes advanced features like state management, accessibility compliance, AI assistance, and performance optimization.
XML Schema Definitions (.xsd files)
ui-layout-def.xsd - Main schema definition with root elements and structureui-layout-patterns.xsd - Pattern definitions for controls, structures, and wireframesui-layout-views.xsd - Advanced view definitions with state management and AI featuresui-layout-validation.xsd - Validation rules, custom validators, and profilesui-layout-basic-controls.xsd - Basic UI control definitionsui-layout-avalonia-controls.xsd - Avalonia platform-specific controlsui-layout-winforms-controls.xsd - Windows Forms platform-specific controlsDefinition Files (Definitions/ folder)
abstract-controls.xml - Base control definitions with common attributes and behaviorsavalonia-controls.xml - Avalonia UI platform-specific control implementationsweb-controls.xml - Web platform control definitionswinform-controls.xml - Windows Forms control definitionsSample Files (Samples/ folder)
sample.xml - Comprehensive v1.4 sample showcasing all featuresbusiness-views.xml - Business logic view examplesXML Validation
# Validate XML files against XSD schemas using XMLStarlet
xmlstarlet val -e -s ui-layout-def.xsd Samples/simple-working.xml
xmlstarlet val -e -s ui-layout-def.xsd Samples/sample-minimal.xml
# Validate all schema files
xmlstarlet val -e ui-layout-*.xsd
# Alternative with xmllint if XMLStarlet unavailable
xmllint --schema ui-layout-def.xsd Samples/simple-working.xml --noout
Schema Validation Status
# All schema files are valid ✅
xmlstarlet val -e ui-layout-def.xsd
xmlstarlet val -e ui-layout-basic-controls.xsd
xmlstarlet val -e ui-layout-patterns.xsd
xmlstarlet val -e ui-layout-views.xsd
xmlstarlet val -e ui-layout-validation.xsd
xmlstarlet val -e ui-layout-avalonia-controls.xsd
xmlstarlet val -e ui-layout-winforms-controls.xsd
# Working sample file ✅
xmlstarlet val -e -s ui-layout-def.xsd Samples/simple-working.xml
# Pattern definitions file ✅
xmlstarlet val -e -s ui-layout-def.xsd Definitions/abstract-controls.xml
XML Processing and Querying
# Query XML structure using XMLStarlet
xmlstarlet sel -t -m "//control" -v "@name" -n abstract-controls.xml
xmlstarlet sel -t -m "//window" -v "@name" -n sample.xml
# Format/pretty-print XML files
xmlstarlet fo sample.xml > formatted-sample.xml
ui-layout-def.xsd defines the main document structureCommonControl in abstract-controls.xmlsample.xml demonstrates v1.4 features including AI assistance, accessibility, and performance optimizationschema-version attributeplatform-constraintsDefinitions/abstract-controls.xmlThe Gallery control is a new v1.4 feature for displaying collections with customizable templates:
Key Features:
image-width, image-height, box-width, box-heightFiles Updated:
Definitions/abstract-controls.xml - Gallery control definition and related structuresui-layout-basic-controls.xsd - Gallery schema types and validation rulesREADME.md - Documentation and usage examplesabstract-controls.xml and ui-layout-basic-controls.xsdabstract-controls.xmlWhen working with this codebase, always validate XML against schemas and ensure new features follow the established patterns for platform abstraction and modular design.