コード例 #1
0
    /// <summary>
    /// Invoked when this page is about to be displayed in a Frame.
    /// </summary>
    /// <param name="e">Event data that describes how this page was reached.  The Parameter
    /// property is typically used to configure the page.</param>
    protected override void OnNavigatedTo(NavigationEventArgs e)
    {
        var slideShareViewModel = new SlideShareViewModel();
        DataContext = slideShareViewModel;
 
        webView.Height = slideShareViewModel.SlideShareItem.Height+25;
        webView.Width = slideShareViewModel.SlideShareItem.Width+25;
        webView.NavigateToString(slideShareViewModel.SlideShareItem.Content);
    }
コード例 #2
0
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.  The Parameter
        /// property is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            var slideShareViewModel = new SlideShareViewModel();

            DataContext = slideShareViewModel;

            webView.Height = slideShareViewModel.SlideShareItem.Height + 25;
            webView.Width  = slideShareViewModel.SlideShareItem.Width + 25;
            webView.NavigateToString(slideShareViewModel.SlideShareItem.Content);
        }