Example #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);
        }
Example #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;
		}
Example #3
0
 public virtual void OnNavigatedTo(HBNavigationEventArgs e)
 {
     ViewModel.OnNavigatedTo(e);
 }
Example #4
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     ViewModel?.OnNavigatedTo(HBNavigationEventArgs.Convert(e));
 }
Example #5
0
		public virtual void OnNavigatedTo(HBNavigationEventArgs e)
		{
			ViewModel.OnNavigatedTo(e);
		}