VisualChildrenCount和Children.Count之间关系的混乱 [英] Confusion for relationship between VisualChildrenCount and Children.Count

查看:313
本文介绍了VisualChildrenCount和Children.Count之间关系的混乱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个InkCanvas,它有Children和VisualChildrenCount属性,Visual children的元素是Visual类型,Children的元素是UIElement,现在的问题是:

I have a InkCanvas which has Children and VisualChildrenCount properties, and the element of Visual children is of type Visual, and the element of Children is of UIElement, now the question is:

如果我向子项添加UIElement(例如Rectangle),VisualChildrenCount会相应更改(在这种情况下增加1)?

If I add a UIElement (e.g. Rectangle) to Children, will VisualChildrenCount change accordingly (in this case increase by 1)?




推荐答案

我原以为是。

你为什么不试试呢?


这篇关于VisualChildrenCount和Children.Count之间关系的混乱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆