我如何获得图表系列? 父母的父母的详细信息?
我在 silverlight 上获取图表系列的祖先时遇到一些困难。
我可以获取父级,但它是一种 Primitive 类型,然后我可以通过指定类型来获取该父级的父级,但是,我不确定当它到达图表时可以达到多少级别,我想查看图表。
有人可以指导我在代码中执行此操作而不指定父级的类型吗?
谢谢
I am having some difficulties of getting the ancestor of a chart series on silverlight.
I can get the parent, but it is a type of Primitive, and then I can get to the parent of that parent by specifying the type, however, I am not sure how many level deep can that be when it reaches to the Chart, and I would like to get to the Chart.
Can someone guide me to do that in code without specifying the type of the parent.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可能有一个建议...
我还没有尝试过,但是通过 FrameworkElement 上的 Name 属性进行搜索怎么样?
当 VisualTree 中存在不是 FrameworkElement 的 DependencyObject 时,这可能不会返回任何内容。
但我认为值得一试......
I might have a suggestion...
I haven't tried it but what about searching by the Name property on a FrameworkElement?
This could return nothing when there is a DependencyObject in the VisualTree which is not a FrameworkElement.
But I think this is worth a shot...