I’m trying to create a custom AccordionItem that can take the tag property value “Rank”:
<local:MyAccItem Header="" Content="" Rank="" />
This isn’t really working because my control simply contains a grid that contains the original Accordion item. I have tried manipulating the template and have created a Resource file with a modified template. But the I want to change the size of Ellipse object inside the AccordionItem that I have templated so that it changes based on the rank of that item. I’m really getting stuck. Help appreciated.
You need to create a Dependency Property ‘Rank’ in the codebehind of your MyAccItem UserControl. I’m assuming your rank would be an int? If so, you could put this in your code behind, build, then it should work in your XAML.