user3448806
user3448806

Reputation: 907

Change the checkbox mark color in windows phone 8

My app uses gray background, i change the border of checkbox with borderbrush, but i dont find any attribute to change the color of the mark within checkbox. So, any solution ?

image

Upvotes: 1

Views: 1353

Answers (2)

DarkMatterSoftware
DarkMatterSoftware

Reputation: 1

You can change it on the Resources property of the control:

DirectCast(Checkbox1.Resources("CheckBoxForegroundThemeBrush"),  
    SolidColorBrush).Color = Windows.UI.Colors.Black

Upvotes: 0

Chris W.
Chris W.

Reputation: 23280

You've got a few options. If we go check out the default template the glyph Path that makes the checkmark visual has a Fill assigned to CheckBoxForegroundThemeBrush which you could change at the template level. Or at the resource level where you would find that resource declaration. Or you could change it at the instance level.

Hope this helps, cheers.

Upvotes: 1

Related Questions