1

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.

moswald
  • 11,491
  • 7
  • 52
  • 78

1 Answers1

0

Does Redefine/alias a resource in WPF? at Redefine/alias a resource in WPF? help you?

Community
  • 1
  • 1
AMissico
  • 21,470
  • 7
  • 78
  • 106
  • This would work, if I were using WPF and not Silverlight. I don't think Silverlight has an equivalent class. Thanks. – moswald Jun 14 '10 at 15:08