Exemplo n.º 1
0
        private void BtnNavigate_Click(object sender, RoutedEventArgs e)
        {
            PageFunction <string> pageFunction = new MyPageFunc();

            pageFunction.Return += new ReturnEventHandler <string>(PageFunction_Return);
            this.NavigationService.Navigate(pageFunction);
        }
Exemplo n.º 2
0
        protected override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);

            btnNavigate.Click += (_, ea) =>
            {
                var pageFunction = new MyPageFunc();
                pageFunction.Return += new ReturnEventHandler <string>(PageFunction_Return);
                this.NavigationService.Navigate(pageFunction);
            };
        }