Quantcast
Channel: Ribbon for WPF - Recent Posts
Viewing all articles
Browse latest Browse all 1458

Re: Not able to change background color of checkcox with CheckBoxKey style.

$
0
0

Hi,

In checkbox control template ComponentResourceKey is given as

ComponentResourceKey TypeInTargetAssembly={x:Type editors:PartEditBox},
 ResourceId=OfficeCheckBoxOuterBorderPressedBrush}

 Please refer this code:

<Setter TargetName="OuterBorder" Property="BorderBrush" 
 Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type editors:PartEditBox},ResourceId=OfficeCheckBoxOuterBorderPressedBrush}}" />

When I added checkbox template in my style, ComponentResourceKey doesn't get resolved.
It seems reference to TypeInTargetAssembly={x:Type editors:PartEditBox},ResourceId=OfficeCheckBoxOuterBorderPressedBrush
is not getting in style.

Can you let us know how we can give reference of TypeInTargetAssembly={x:Type editors:PartEditBox},ResourceId=OfficeCheckBoxOuterBorderPressedBrush in our style.

OR

What assembly we reference we need to add to resolve reference "TypeInTargetAssembly={x:Type editors:PartEditBox},ResourceId=OfficeCheckBoxOuterBorderPressedBrush"


Viewing all articles
Browse latest Browse all 1458

Trending Articles