InkCanvas.Children Egenskap

Definition

Hämtar underordnade element i InkCanvas.

public:
 property System::Windows::Controls::UIElementCollection ^ Children { System::Windows::Controls::UIElementCollection ^ get(); };
public System.Windows.Controls.UIElementCollection Children { get; }
member this.Children : System.Windows.Controls.UIElementCollection
Public ReadOnly Property Children As UIElementCollection

Egenskapsvärde

En samling underordnade element som finns på InkCanvas.

Exempel

I följande exempel läggs en TextBlock till i en InkCanvas.

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

Kommentarer

Användning av XAML-egenskapselement

<object>
  OneOrMoreUIElements
</object>

XAML-värden

OneOrMoreUIElements Ett eller flera UIElement objekt.

Gäller för