Wednesday, November 21, 2007

DefaultProperty metadata

Looking back at the last post, yea... it is nice to MXML, but it is a bit ugly and verbose till I remembered the [DefaultProperty("xxxx")] metadata.   Adjusted my local copy and what you will get is this:

<?xml version="1.0" encoding="utf-8"?>
  <awx:Map createDefaultLayers="false">
          <awx:GeoPoint x="45" y="45"/>
          <awx:GeoPoint x="45" y="-45"/>
          <awx:GeoPoint x="-45" y="0"/>           

WDYT ? oh and BTW, hoping to put this for the next release :-)

Blogged with Flock

No comments: