Style to currently selected page in navigation menu

I went a similar route but used an event instead of a transform and also incorporated recursion so that there could be a variable depth of child items in the menu: