wpf - Collection Control and Attached Property -
i have 2 questions:
1) want create collection control can use in xaml this:
<local:mycollection x:key="mc"> <local:mycollection.groups> <local:mycollectiongroup x:name="cg1"/> <local:mycollectiongroup x:name="cg2"/> </local:mycollection.groups> </local:mycollection> <textbox local:collectioncontrol=mc/>
how can this?
2) similiar above.
<local:mycollectiongroup x:name="cg1"/> <local:mycollectiongroup x:name="cg2"/> <textbox local:collectioncontrol=cg1,cg2/>
have looked using compositecollection? http://msdn.microsoft.com/en-us/library/system.windows.data.compositecollection.aspx
typically you'd like
<local:mycollection x:key="mc"> <compositecollection> <local:mycollectiongroup x:name="cg1"/> <local:mycollectiongroup x:name="cg2"/> </compositecollection> </local:mycollection>
Comments
Post a Comment