Is it possible to create a resource with multiple names in xaml?
I开发者_运维知识库n a ResourceDictionary
, is there any way to specify an alias for a resource? For example,
<Color x:Key="BorderColor">#FF000000</Color>
<Color x:Key="AlternateBorderColor">{StaticResource BorderColor}</Color>
I don't really want another resource called "AlternateBorderColor", I would just like to be able to refer to the original resource by another name.
Does Redefine/alias a resource in WPF? at Redefine/alias a resource in WPF? help you?
精彩评论