Skip to content

Children Property

See Also

MarkupUniformGrid Object

See Also

Markup ActiveX Control v24.0

Description

Gets a MarkupUIElementCollection of child elements of this Panel.

Property Type

Read-only property

Syntax (Visual Basic)

Public Property Children() As [MarkupUIElementCollection](XtremeMarkup~MarkupUIElementCollection.md)

Return Type

A MarkupUIElementCollection. By default, the collection will be empty.

Remarks

The Children collection of a MarkupPanel element can only consist of MarkupUIElement objects. Adding a MarkupUIElement child to a Panel implicitly adds it to the MarkupUIElementCollection for the Panel element.

Example

Adding Children Sample (Visual Basic)

This sample shows how to add a child item in code. You can also use the XAML string instead of code.

Set myStackPanel = Context.CreateObject("StackPanel")  
Set myButton = Context.CreateObject("Button")  
myButton.Content = "Press me"  
myStackPanel.Children.Add(myButton)

See Also

MarkupUniformGrid Object


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.