public MainPage()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.OnLoadState;   
        }
        public InspectionDetailsView()
        {
            this.InitializeComponent();

            this.DefaultViewModel = new InspectionDetailsViewModel();
            this.DataContext = this;

            this.MapImage.Source = new BitmapImage(new Uri(ConfigurationHub.ReadConfigurationValue("MapImageLarge")));

            // Setup the navigation helper
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelperLoadState;

            // Setup the logical page navigation components that allow
            // the page to only show one pane at a time.
            this.navigationHelper.GoBackCommand = new RelayCommand(this.GoBack, this.CanGoBack);

            // Start listening for Window size changes 
            // to change from showing two panes to showing a single pane
            Window.Current.SizeChanged += this.WindowSizeChanged;
            this.InvalidateVisualState();
        }