This topic has not yet been rated - Rate this topic

VisualTreeHelper.GetChildrenCount method

Returns the number of children that exist in an object's child collection in the visual tree.

Syntax


public static int GetChildrenCount(
  DependencyObject reference
)

Parameters

reference

Type: DependencyObject

The source visual.

Return value

Type: System.Int32 [.NET] | int32 [C++]

The number of visual children for the provided source visual.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.winmd

See also

VisualTreeHelper

 

 

Build date: 12/4/2012

© 2013 Microsoft. All rights reserved.