コード例 #1
0
        private async void DeployButton_Click(object sender, RoutedEventArgs e)
        {
            WebPageManager.SetSelected(Page);
            await WebPageManager.Save();

            DeployDialog dialog = new DeployDialog(WebPageManager.GetSelectedPage());
            await dialog.ShowAsync();

            LoadDetails();
        }
コード例 #2
0
        private void LoadDetails()
        {
            Page = WebPageManager.GetSelectedPage();

            TitleTextBox.Text         = Page.Title;
            TitleTextBlock.Text       = "Edit \"" + Page.Title + "\" Details";
            RelativeURLTextBlock.Text = Page.RelativeURL;
            // tool tip for when URL is too long to show all of it
            ToolTipService.SetToolTip(RelativeURLTextBlock, new ToolTip()
            {
                Content = Page.RelativeURL
            });
            LastUpdatedTextBlock.Text   = Page.GetLastUpdatedAsString();
            LastSubmittedTextBlock.Text = Page.GetLastSubmittedAsString();
            ContentHTMLTextBox.Text     = Page.ContentHTML;
            HeaderHTMLTextBox.Text      = Page.AdditionalHeaderHTML;
        }