Silveright UIElementCollection change notifications?

旧街凉风 提交于 2019-12-24 11:37:03

问题


I am deriving a class from the Silverlight Panel class so that I can perform some custom positioning of the child elements of the panel. How do you find out when the collection of child items has been changed? The Panel.Children collection does not have any events indicating change notifications.

Do I have to scan the Children collection each time a measure occurs and look for the elements that have been added and disappeared?


回答1:


Try this post: Silverlight: Getting notified upon changes to a Panel’s Children (of type UIElementCollection) property. Not a perfect solution, but might help.



来源:https://stackoverflow.com/questions/684197/silveright-uielementcollection-change-notifications

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!