<?xml version="1.0" encoding="UTF-8"?>
<Application autoNameMapping="true">
	<Window isNameRoot="true">
		
		<!-- 
			A composite component with a simple mouseover function
		-->

		<Component top="25" left="25" width="250" height="150" border="2px groove">
			<Label Property.name="myLabel" text="Hello World!" left="0" right="0" padding="4" backColor="#FFCC33" border="1px outset"/>
			<Property name="labelText" read="true" write="true" src=".myLabel" srcProperty="text"/>
			<Property name="alternateText" read="true" write="true" value="Some other text"/>
			<EventListener type="mouseover">
				<Reference type="property" name="labelText">
					<Reference.arguments>
						<Reference type="property" name="alternateText"/>
					</Reference.arguments>
				</Reference>
			</EventListener>
		</Component>
	
		
		<!-- another variation on the above that work as well: -->
		<Component top="250" left="25" width="250" height="150" border="2px groove" name="someComponent">
			<Label Property.name="myLabel" text="Hello World!" left="0" right="0" padding="4" backColor="#CC33FF" border="1px outset"/>
			<Property name="alternateText" read="true" write="true" value="Some other text"/>
			<EventListener type="mouseover">
				<Reference type="property" src="someComponent.myLabel" name="text">
					<Reference.arguments>
						<Reference type="property" name="alternateText"/>
					</Reference.arguments>
				</Reference>
			</EventListener>
		</Component>
	</Window>
</Application>