Looping between links using timer

Sep 20, 2013 at 6:14 AM
Hello everyone

I wonder if it is possible to set a timer an iterate over the links in each MenuLinkGroups. I was trying to do that but in the mainwindow doesn't work, I can't navigate to other windows from the main window, for instance:
        DispatcherTimer timer = new DispatcherTimer();
        timer.Interval = new TimeSpan(0, 0, 5);
        timer.Tick += ((sender, e) =>
            DefaultLinkNavigator _navigator = new DefaultLinkNavigator();
            _navigator.Navigate(new Uri("/Pages/Settings.xaml", UriKind.Relative), this, null);
But if I put the same code in another window not in the main page it works.

The fact is that, the constructor just fires once. And I had to put timer.Stop();, because I'm getting an error: "Unable to navigate to /Pages/Settings.xaml, could not find a ModernFrame target ''" and that happens because the timer was still active. So the idea was in the constructor set up againt the timer. but it just fires once.

Does anybody could please help me?
Thanks in advance