BlockUIContainer Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the BlockUIContainer class.
Overloads
BlockUIContainer() |
Initializes a new, empty instance of the BlockUIContainer class. |
BlockUIContainer(UIElement) |
Initializes a new instance of the BlockUIContainer class, taking a specified UIElement object as the initial contents of the new BlockUIContainer. |
BlockUIContainer()
Initializes a new, empty instance of the BlockUIContainer class.
public:
BlockUIContainer();
public BlockUIContainer ();
Public Sub New ()
Applies to
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
Public Sub New (uiElement As UIElement)
Parameters
- 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)