May 17, 2013 at 5:41 PM
Edited May 18, 2013 at 11:29 AM
i need to find out which link is currently active.
You may think that it is hard to find a use case for this so i created an
to illustrate my point.
After a user logs in the application connects to a web-service and asks for queues which are accessible by the user. Then the application creates a Link for each queue and initializes a UserControl which takes the name of the queue as a parameter. All links
point to the same xaml file called Queues.xaml. Queues.xaml is bound to a QueuesViewModel which holds a Dictionary<queuename, UserControl> and a property ActiveUserControl. Queues.xaml contains only a ContentPresenter which is bound to the ActiveUserControl
property in the ViewModel.
Now, i need to update the ActiveUserControl property every time a link is clicked.
Thanks in advance