C
C#7mo ago
Elid Elid

Changing ListItem index

Is it possible to change the index of a ListItem? For example,
<List>
<ListItem Index=1>
<Paragraph>A</Paragraph>
</ListItem>
<ListItem Index=3>
<Paragraph>C</Paragraph>
</ListItem>
</List>
<List>
<ListItem Index=1>
<Paragraph>A</Paragraph>
</ListItem>
<ListItem Index=3>
<Paragraph>C</Paragraph>
</ListItem>
</List>
Result:
1. A
3. C
1. A
3. C
2 Replies
Pobiega
Pobiega7mo ago
Not the way you show, no. The index must be sequential. Probably better to add your own "order" property to the item you use as your list item instead Let the list index be only a list index
Buddy
Buddy7mo ago
Make an attached property
Want results from more Discord servers?
Add your server