Example #1
0
        public MainHub()
        {
            this.InitializeComponent();
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += navigationHelper_LoadState;
            this.NavigationCacheMode = NavigationCacheMode.Disabled;

            this.SizeChanged += this.Page_SizeChanged;
        }
Example #2
0
        public MapPage()
        {
            this.InitializeComponent();
            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += navigationHelper_LoadState;
            this.NavigationCacheMode = NavigationCacheMode.Disabled;
            var viewModel = (MapViewModel)this.DataContext;
            viewModel.PropertyChanged += viewModel_PropertyChanged;

            viewModel.LoadData(MapLoadDelay);
        }