stswordman



We can use "x:Key" to attach a key to the object which don't define a Key property like code below:
<ResourceDictionary>
<Color x:Key=Ħħ1Ħħ A=Ħħ255Ħħ R=Ħħ255Ħħ G=Ħħ255Ħħ B=Ħħ255Ħħ/>
<Color x:Key=Ħħ2Ħħ A=Ħħ0Ħħ R=Ħħ0Ħħ G=Ħħ0Ħħ B=Ħħ0Ħħ/>
</ResourceDictionary>

But i don't know what is the "x:Key".Is it a class defined in System.Windows.Markup namespace that map to XAML



Re: Windows Presentation Foundation (WPF) what is the "x:Key"?

Yi-Lun Luo - MSFT

Hello, for a description of x:Key, please refer to http://msdn2.microsoft.com/en-us/library/ms742804.aspx.