當前位置: 首頁>>代碼示例>>VB.NET>>正文


VB.NET BlockUIContainer.Child屬性代碼示例

本文整理匯總了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)
開發者ID:VB.NET開發者,項目名稱:System.Windows.Documents,代碼行數:17,代碼來源:BlockUIContainer.Child


注:本文中的System.Windows.Documents.BlockUIContainer.Child屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。