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