Język

BlockUIContainer Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy BlockUIContainer.

Przeciążenia

Nazwa Opis
BlockUIContainer()

Inicjuje nowe, puste wystąpienie BlockUIContainer klasy.

BlockUIContainer(UIElement)

Inicjuje nowe wystąpienie klasy BlockUIContainer, przyjmując określony obiekt UIElement jako początkową zawartość nowego BlockUIContainer.

BlockUIContainer()

Inicjuje nowe, puste wystąpienie BlockUIContainer klasy.

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

Dotyczy

BlockUIContainer(UIElement)

Inicjuje nowe wystąpienie klasy BlockUIContainer, przyjmując określony obiekt UIElement jako początkową zawartość nowego 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)

Parametry

uiElement
UIElement

Obiekt UIElement określający początkową zawartość nowego BlockUIContainerobiektu .

Przykłady

W poniższym przykładzie pokazano użycie tego konstruktora.

// 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)

Dotyczy