Пример #1
0
        //<SnippetCallAPageFunctionCODEBEHIND>
        void callPageFunctionHyperlink_Click(object sender, RoutedEventArgs e)
        {
            // Call a page function
            GetStringPageFunction pageFunction = new GetStringPageFunction("initialValue");

            this.NavigationService.Navigate(pageFunction);
        }
Пример #2
0
        //</SnippetCallAPageFunctionCODEBEHIND>

        //<SnippetGetPageFunctionResultCODEBEHIND>
        void callPageFunctionAndReturnHyperlink_Click(object sender, RoutedEventArgs e)
        {
            // Call a page function and hook up page function's return event to get result
            GetStringPageFunction pageFunction = new GetStringPageFunction();

            pageFunction.Return += new ReturnEventHandler <String>(GetStringPageFunction_Returned);
            this.NavigationService.Navigate(pageFunction);
        }