![](/s/cache/2b/e2/2be2e5151676e15aa4deec05027ee989.png)
0
Under review
Anyone any luck with WPF Attached Properties
Hello,
I am interested to inject a ViewModel into the mix via the parent UserControl DataContext, which subsequently should relay that value to an Attached Dependency Property.
I'd like for interested views and models contained by the UserControl, or children therein, to be able to access the same attached property value.
I am studying some issues and 'tutorials' online, but thus far haven't had much luck retrieving the attached property value. I can listen for DataContext, no problem however.
Has anyone ever dealt with Attached Dependency Properties, or perhaps knows a good tutorial that explains it?
It's also possible that I need for 'children' of the problem to register with the property, but none of the examples stipulate that, or have conveniently left that part out (i.e. it's been alluded to in places).
Any insight is welcome.
Thank you...
I am interested to inject a ViewModel into the mix via the parent UserControl DataContext, which subsequently should relay that value to an Attached Dependency Property.
I'd like for interested views and models contained by the UserControl, or children therein, to be able to access the same attached property value.
I am studying some issues and 'tutorials' online, but thus far haven't had much luck retrieving the attached property value. I can listen for DataContext, no problem however.
Has anyone ever dealt with Attached Dependency Properties, or perhaps knows a good tutorial that explains it?
It's also possible that I need for 'children' of the problem to register with the property, but none of the examples stipulate that, or have conveniently left that part out (i.e. it's been alluded to in places).
Any insight is welcome.
Thank you...
![](/s/cache/7d/a3/7da3fe87ff410e4bba452c149c5b6547.png)
0
Under review
Øystein Bjørke 10 years ago
This is a general XAML/WPF question, it may be better to try other forums!
Customer support service by UserEcho