語言

BlockUIContainer 建構函式

定義

初始化 BlockUIContainer 類別的新執行個體。

多載

名稱 Description
BlockUIContainer()

初始化一個新的、空的類別實例 BlockUIContainer 。

BlockUIContainer(UIElement)

初始化該類別的新實例 BlockUIContainer ,將指定 UIElement 物件作為新 BlockUIContainer的初始內容。

BlockUIContainer()

初始化一個新的、空的類別實例 BlockUIContainer 。

public:
 BlockUIContainer();
public BlockUIContainer();
Public Sub New ()

適用於

BlockUIContainer(UIElement)

初始化該類別的新實例 BlockUIContainer ,將指定 UIElement 物件作為新 BlockUIContainer的初始內容。

public:
 BlockUIContainer(System::Windows::UIElement ^ uiElement);
public BlockUIContainer(System.Windows.UIElement uiElement);
new System.Windows.Documents.BlockUIContainer : System.Windows.UIElement -> System.Windows.Documents.BlockUIContainer
Public Sub New (uiElement As UIElement)

參數

uiElement
UIElement

一個 UIElement 指定新 BlockUIContainer的初始內容的物件。

範例

以下範例展示了此建構子的使用方法。

// A child UIElement element for the new BlockUIContainer element.
Button buttonx = new Button();
buttonx.Content = "Click me!";

// After this line executes, the new element "inlineUI"
// contains the specified Inline element, "runx".
BlockUIContainer blockUI = new BlockUIContainer(buttonx);
' A child UIElement element for the new BlockUIContainer element.
Dim buttonx3 As New Button()
buttonx3.Content = "Click me!"

' After this line executes, the new element "inlineUI"
' contains the specified Inline element, "runx".
Dim blockUI As New BlockUIContainer(buttonx3)

適用於