Is it possible to create a resource with multiple names in xaml?

Posted by mos on Stack Overflow See other posts from Stack Overflow or by mos
Published on 2010-06-11T20:33:15Z Indexed on 2010/06/12 5:43 UTC
Read the original article Hit count: 164

Filed under:

In 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.

© Stack Overflow or respective owner

Related posts about xaml