How do you reference another element in a xaml list
Posted
by Ball
on Stack Overflow
See other posts from Stack Overflow
or by Ball
Published on 2010-03-16T14:49:17Z
Indexed on
2010/03/16
14:51 UTC
Read the original article
Hit count: 192
xaml
I'm using xaml as a datastore because It's quick and we haven't yet defined a file format. But I can only seem to create xaml that is a pure tree, even if it is acyclic.
I know how to create a list of items in xaml, but How do I share objects in two lists? Below is an example of what I'm trying to say.
<CreaturFile>
<CreatureFile.Monsters>
<Monster Name="Kobold" x:Name="Mepo"/>
<Monster Name="Goblin"/>
</CreatureFile.Monsters>
<CreatureFile.Encounters>
<Encounter>
<Reference ElementName="Mepo"/>
</Encounter>
</CreatureFile.Encounters>
</CreatureFile>
© Stack Overflow or respective owner