<Shell xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt" | |
xmlns:y="clr-namespace:org.eclipse.xwt.tests.databinding.validation" | |
xmlns:xwt="clr-namespace:org.eclipse.xwt.converters.validators" | |
xmlns:u="clr-namespace:java.util" Size="400, 300"> | |
<Shell.layout> | |
<GridLayout numColumns="1" /> | |
</Shell.layout> | |
<Label text="Input a text in first Text > 8 characters " /> | |
<Text x:name="text1" | |
text="{Binding name=MyBinding, elementName=text1,path=text,updateSourceTrigger=PropertyChanged,validationRule=y:SizeValidationRule}" | |
toolTipText="{Binding source={ValidationStatus sourceName=MyBinding}}"/> | |
</Shell> |