Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

InlineUIContainer Constructor (UIElement)

 

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

Namespace:   System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

public InlineUIContainer(
	UIElement childUIElement
)

Parameters

childUIElement
Type: System.Windows.UIElement

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

The following example demonstrates usage of this constructor.

// A child UIElement element for the new InlineUIContainer element.
Button buttonx = new Button();
buttonx.Content = "Click me!";

// After this line executes, the new element "inlineUI"
// contains the specified Inline element, "runx".
InlineUIContainer inlineUI = new InlineUIContainer(buttonx);

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft