I would probably try and do this via a ViewModel property instead which can be read as the page renders, but if you're looking for a way to have a variable set by a child that the master view can see, then you can always declare and use a global for example:
<global activeItem="Home" />
can be declared in the master and then:
<set activeItem="Contact" />
in the child view.