Alias or Reference in ResourceDictionary
问题 I'm looking for a way to essentially give an item in a ResourceDictionary multiple keys. Is there a way to do this? <DataTemplate x:Key="myTemplate" ... /> <AliasedResource x:Key="myTemplateViaAlias" Target="myTemplate" OR_Target={StaticResource myTemplate} /> When I call TryFindResource("myTemplateViaAlias") I want to get myTemplate out. I suppose I could create an AliasedResource class myself and dereference it in code when I get it out of the dictionary, but I'd rather not do that if there