开发者

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

开发者 https://www.devze.com 2023-01-03 00:10 出处:网络
I开发者_运维知识库n a ResourceDictionary, is there any way to specify an alias for a resource?For example,

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消