Styling hyperlink button inside a data template in Silverlight
- by cmaduro
How do I change the visual state of a hyperlinkbutton inside a datatemplate? In short, what I'm doing is basically I'm trying to iterate of the hyperlinkbuttons and set their visual state to active or inactive according to the url. The hyperlink buttons are located inside the datatemplate of an itemscontrols itemsource that is bound to a List where link is my custom class for links.
Is there a best practice for styling the active hyperlink in a silverlight nav app? What I am using is the approach of the boilerplate code.