wpf - Styling an attached property with inheritance -


My question is similar to: But the problem is that I have an associated property:

 < Code> & lt; Style target type = "size" & gt; & Lt; Setter Property = "z: Zommable.Unscale" Value = "Strokecache" /> & Lt; / Style & gt;   

My goal: ranging from shapes should be Zommable.Unscale property attached in all objects, but I do not know how to do it thanks!

There is no difference in the second question, you must do exactly From each class you will have to use a style with the style that is based on your style.

So this is going to happen:

  & lt; Style x: key = "original style" & gt; & Lt; Setter Property = "z: Zommable.Unscale" Value = "Strokecache" /> & Lt; / Style & gt; & Lt; Style TargetType = "{x: type Ellipse}" based on = "{static resource basic style}" & gt; & Lt ;! - ... - & gt; & Lt; / Style & gt; & Lt; Style target type = "{x: type rectangular}" based on = "{static resource original style}" & gt; & Lt ;! - ... - & gt; & Lt; / Style & gt; & Lt ;! - ... - & gt;    

Comments