InkCanvas.Children Właściwość

Definicja

Pobiera elementy podrzędne elementu 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

Wartość właściwości

Kolekcja elementów podrzędnych znajdujących się w obiekcie InkCanvas.

Przykłady

Poniższy przykład dodaje element TextBlock do elementu 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)

Uwagi

Użycie elementu właściwości języka XAML

<object>  
  OneOrMoreUIElements  
</object>  

Wartości XAML

OneOrMoreUIElements
Co najmniej UIElement jeden obiekt.

Dotyczy