BlockUIContainer BlockUIContainer BlockUIContainer BlockUIContainer Constructors

Definition

Overloads

BlockUIContainer() BlockUIContainer() BlockUIContainer()

Initializes a new, empty instance of the BlockUIContainer class.

BlockUIContainer(UIElement) BlockUIContainer(UIElement) BlockUIContainer(UIElement)

Initializes a new instance of the BlockUIContainer class, taking a specified UIElement object as the initial contents of the new BlockUIContainer.

BlockUIContainer() BlockUIContainer() BlockUIContainer()

Initializes a new, empty instance of the BlockUIContainer class.

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

BlockUIContainer(UIElement) BlockUIContainer(UIElement) BlockUIContainer(UIElement)

Initializes a new instance of the BlockUIContainer class, taking a specified UIElement object as the initial contents of the new 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

Parameters

uiElement
UIElement UIElement UIElement UIElement

An UIElement object specifying the initial contents of the new BlockUIContainer.

Examples

The following example demonstrates usage of this constructor.

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

Applies to