本文整理匯總了C#中System.Windows.Documents.BlockUIContainer.Child屬性的典型用法代碼示例。如果您正苦於以下問題:C# BlockUIContainer.Child屬性的具體用法?C# BlockUIContainer.Child怎麽用?C# BlockUIContainer.Child使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。
在下文中一共展示了BlockUIContainer.Child屬性的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Section
Section secx = new Section();
Paragraph par1 = new Paragraph(new Run(" Text to precede the button... "));
Paragraph par2 = new Paragraph(new Run(" Text to follow the button... "));
// Create a new button to be hosted in the section.
Button buttonx = new Button();
buttonx.Content = "Click me!";
// Create a new BlockUIContainer, and assign the button
// as the UI container's child.
BlockUIContainer uiCont = new BlockUIContainer();
uiCont.Child = buttonx;
// Add the text runs and UI container to the paragraph, in order.
secx.Blocks.Add(par1);
secx.Blocks.Add(uiCont);
secx.Blocks.Add(par2);