Will there be RelativeSource FindAncestor, AncestorType... in Silverlight 4?
相关问题
- Generic Generics in Managed C++
- How to Debug/Register a Permanent WMI Event Which
- 'System.Threading.ThreadAbortException' in
- Bulk update SQL Server C#
- Should I use static function in c# where many call
This may help:
http://blog.thekieners.com/2010/09/08/relativesource-binding-with-findancestor-mode-in-silverlight/
Perhaps you could instantiate the ViewModel in the XMAL as a static resource then reference that as the source in your binding.
RelativeSource AncestorType
is supported in Silverlight 5, which is available now.In Silverlight 4 the
RelativeSource
property ofBinding
still only supports "Self" and "TemplatedParent", there is no change from Silverlight 3 in this area.