BlockUIContainer Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Initialisiert eine neue Instanz der BlockUIContainer-Klasse.
Überlädt
| Name | Beschreibung |
|---|---|
| BlockUIContainer() |
Initialisiert eine neue, leere Instanz der BlockUIContainer Klasse. |
| BlockUIContainer(UIElement) |
Initialisiert eine neue Instanz der BlockUIContainer Klasse, wobei ein angegebenes UIElement -Objekt als anfänglicher Inhalt des neuen BlockUIContainerverwendet wird. |
BlockUIContainer()
Initialisiert eine neue, leere Instanz der BlockUIContainer Klasse.
public:
BlockUIContainer();
public BlockUIContainer();
Public Sub New ()
Gilt für:
BlockUIContainer(UIElement)
Initialisiert eine neue Instanz der BlockUIContainer Klasse, wobei ein angegebenes UIElement -Objekt als anfänglicher Inhalt des neuen BlockUIContainerverwendet wird.
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)
Parameter
- uiElement
- UIElement
Ein UIElement Objekt, das den anfänglichen Inhalt des neuen BlockUIContainerangibt.
Beispiele
Im folgenden Beispiel wird die Verwendung dieses Konstruktors veranschaulicht.
// 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)