BlockUIContainer 建構函式

定義

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

多載

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)

適用於