BlockUIContainer Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Initierar en ny instans av BlockUIContainer klassen.
Överlagringar
| Name | Description |
|---|---|
| BlockUIContainer() |
Initierar en ny, tom instans av BlockUIContainer klassen. |
| BlockUIContainer(UIElement) |
Initierar en ny instans av BlockUIContainer klassen och tar ett angivet UIElement objekt som det första innehållet i den nya BlockUIContainer. |
BlockUIContainer()
Initierar en ny, tom instans av BlockUIContainer klassen.
public:
BlockUIContainer();
public BlockUIContainer();
Public Sub New ()
Gäller för
BlockUIContainer(UIElement)
Initierar en ny instans av BlockUIContainer klassen och tar ett angivet UIElement objekt som det första innehållet i den nya 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)
Parametrar
- uiElement
- UIElement
Ett UIElement objekt som anger det första innehållet i den nya BlockUIContainer.
Exempel
I följande exempel visas användningen av den här konstruktorn.
// 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)