How does one go about referencing a class's static properties in xaml? In other words, I want to do something like this:
Class BaseThingy {
public static readonly Style BaseStyle;
...
}
<ResoureDictionary ...>
<Style BasedOn="BaseThingy.Style" TargetType="BaseThingy" />
</ResourceDictionary>
What is the syntax to do this in the BasedOn? I assumed it would involve using StaticResource
to some degree, but I haven't gotten it to work for me.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…