Ler em inglês Editar

Compartilhar via


InkCanvas.Children Property

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.

Retrieves child elements of the InkCanvas.

C#
public System.Windows.Controls.UIElementCollection Children { get; }

Property Value

A collection of child elements located on the InkCanvas.

Examples

The following example adds a TextBlock to an InkCanvas.

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

Remarks

XAML Property Element Usage

<object>
  OneOrMoreUIElements
</object>

XAML Values

OneOrMoreUIElements One or more UIElement objects.

Applies to

Produto Versões
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10