I have a user control which is shared between a lot of .xaml files which are user controls themselves. In the shared user control I have this code:
<controls:MyButton x:Name="Back" Tag="/Resources/Back.png" Content="Back" Command="{Binding Path=NavigateToPrevious}"/>
where MyButton is a button.
And the code works fine, it redirects me to the previous page on which I've been.
However, there are pages in my application which take a parameter in order to be shown. For example, I'm on page People, I go to John, click Back (Page is opened), click Back again (John shoul be opened). The People page lists all the people in my database, it doesn't need input parameters. But the Person page needs to know if I want John or Jack to be shown. Plus, it isn't just the Person page which needs input parametters.
How can I send that parametar via MyButton? MyButton is in a shared user control. The needed parameter is in a view model.