Beispiel #1
0
        public bool Navigate(Type sourcePageType, object parameter = null, string targetName = null)
        {
            this.Visibility = Visibility.Visible;
            var page = CreatePage(sourcePageType, targetName);
            var args = new HBNavigationEventArgs()
            {
                SourcePageType = sourcePageType,
                Content        = page,
                NavigationMode = NavigationMode.New,
                Parameter      = parameter
            };


            page.OnNavigatedTo(args);

            Navigated?.Invoke(this, args);
            if (false)
            {
                page.RenderTransform        = new CompositeTransform();
                page.ManipulationMode       = ManipulationModes.TranslateX;
                page.ManipulationDelta     += HBPage_ManipulationDelta;
                page.ManipulationCompleted += Page_ManipulationCompleted;
            }
            return(true);
        }
Beispiel #2
0
		public bool Navigate(Type sourcePageType, object parameter = null, string targetName = null)
		{
			this.Visibility = Visibility.Visible;
			var page = CreatePage(sourcePageType, targetName);
			var args = new HBNavigationEventArgs()
			{
				SourcePageType = sourcePageType,
				Content = page,
				NavigationMode = NavigationMode.New,
				Parameter = parameter
			};


			page.OnNavigatedTo(args);

			Navigated?.Invoke(this, args);
			if (false)
			{
				page.RenderTransform = new CompositeTransform();
				page.ManipulationMode = ManipulationModes.TranslateX;
				page.ManipulationDelta += HBPage_ManipulationDelta;
				page.ManipulationCompleted += Page_ManipulationCompleted;
			}
			return true;
		}
Beispiel #3
0
 public virtual void OnNavigatedTo(HBNavigationEventArgs e)
 {
     ViewModel.OnNavigatedTo(e);
 }
Beispiel #4
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     ViewModel?.OnNavigatedTo(HBNavigationEventArgs.Convert(e));
 }
Beispiel #5
0
		public virtual void OnNavigatedTo(HBNavigationEventArgs e)
		{
			ViewModel.OnNavigatedTo(e);
		}