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.

InkCanvas.Children Property

 

Retrieves child elements of the InkCanvas.

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

public UIElementCollection Children { get; }

Property Value

Type: System.Windows.Controls.UIElementCollection

A collection of child elements located on the InkCanvas.

<object>
  OneOrMoreUIElements
</object>

OneOrMoreUIElements

One or more UIElement objects.

The following example adds a TextBlock to an InkCanvas.

textBlock1 = new TextBlock();
textBlock1.Text = "TextBlock content";
Canvas.SetTop(textBlock1, 100);
Canvas.SetLeft(textBlock1, 100);
inkCanvas1.Children.Add(textBlock1);

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