|
using System;
using System.Windows;
using System.Windows.Input;
using Magellan;
using Magellan.Events;
using Magellan.Progress;
namespace MyMagellanApp
{
public partial class MainWindow : Window, INavigationProgressListener
{
public MainWindow(INavigatorFactory navigation)
{
InitializeComponent();
navigation.ProgressListeners.Add(this);
MainNavigator = navigation.CreateNavigator(MainFrame);
}
public INavigator MainNavigator { get; set; }
public void UpdateProgress(NavigationEvent navigationEvent)
{
Dispatcher.Invoke(new Action(
delegate
{
if (navigationEvent is BeginRequestNavigationEvent)
{
Cursor = Cursors.Wait;
}
if (navigationEvent is CompleteNavigationEvent)
{
Cursor = Cursors.Arrow;
}
}));
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
My name is
Paul Stovell. I live in Brisbane and develop an automated release management product,
Octopus Deploy. Prior to working on Octopus I worked for an investment bank in London, and for
Readify. I also work on
a few open source projects. I am a Microsoft MVP for Client Application Development.