InkCanvas.Children Propiedad

Definición

Recupera los elementos secundarios de 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

Valor de propiedad

Colección de los elementos secundarios que se encuentran en InkCanvas.

Ejemplos

En el ejemplo siguiente se agrega un TextBlock objeto a .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)

Comentarios

Uso de elementos de propiedad XAML

<object>  
  OneOrMoreUIElements  
</object>  

Valores XAML

OneOrMoreUIElements
Uno o varios UIElement objetos.

Se aplica a