protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            this.Sample = e.Parameter as PageDefinition;
            this.DataContext = this.Sample;
            var fe = (FrameworkElement)Activator.CreateInstance(this.Sample.PageType);

            _placeHolder.Child = fe;

            base.OnNavigatedTo(e);
        }
        public void ShowPage(PageDefinition sample)
        {
            this.SelectedSample = sample;

            sampleHistory.Add(sample);
            this.PageHeader = sample.Caption;

            RootFrame.Navigate(typeof(HostPage), sample);

            OnPropertyChanged("BackButtonVisibility");
        }
		public static PageDefinition MakePageDefinitionFromMenu(Type type)
		{
			var cas = type.GetTypeInfo().GetCustomAttributes(typeof(MenuAttribute));

			var ca = cas.FirstOrDefault() as MenuAttribute;
			if (ca != null)
			{
				PageDefinition sd = new PageDefinition();
				sd.Caption = ca.Caption;
				sd.Order = ca.Order;
				sd.IsHome = ca.IsHome;
				sd.Symbol = ca.Symbol;
				sd.PageType = type;
				return sd;
			}

			return null;
		}
		public void ShowPage(PageDefinition page)
        {
            RootPage.ViewModel.ShowPage(page);
        }