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)
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應