Repository navigation
|
I have a custom DependencyProperty I get the error MC3011 Cannot find the static member NameOfPProperty on the type TabItem. Obviously I can't add a static field into class |
Replies: 1 comment
|
Found it. I need to refer to Also I have to make sure that the static field is named The documentation seems to suggest that |
Found it. I need to refer to
PasClassWherePIsDefined.NameOfP.Also I have to make sure that the static field is named
NameOfPPropertywithNameOfPbeing the name passed toDependencyProperty.Register. Otherwise compilation works fine, but it fails at runtime.The documentation seems to suggest that
DependencyProperty.RegisterAttachedshould be used to definePin that case, but it seems thatDependencyProperty.Registerworks just as well.