<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:local="clr-namespace:MyComponent">

  <SolidColorBrush x:Key="{ComponentResourceKey {x:Type loc:MyType}, brush1}"
                   Color="Red" />
  <SolidColorBrush x:Key="{ComponentResourceKey {x:Type loc:MyType}, brush2}"
                   Color="Green" />

</ResourceDictionary>

