Windows Phone 7 - Silverlight Checkpoint Color

Can someone tell me how I can change the color of my checkmark for a checkbox in Silverlight for developing Windows Phone 7?

I see some links on the Internet for template changes, but this is more for WPF or SilverLight applications, not WP7.

Now I have a white background on my stack panel, and my background for my flags is black. It would be nice to checkmark white.

Any ideas?

UPDATE:

I should mention that I create these checkboxes in the code behind (through the loop), and I use VS 2010 to develop my phone.

Answer:

Thanks to Mick, who led me on the right track. I had to play a little with it, but I used MS Blend to create my own style, and then I copied XAML and placed this XAML style in App.xaml between the tags.

Then I applied it in my code as follows:

chk.Style = (Style)Application.Current.Resources["CheckBoxStyle1"];
+3
source share
1 answer

You can access it by reinstalling the control in Blend.

  • Check the box.
  • Right click
  • Change Template
  • Change copy
  • Go to CheckMark path
  • Change color
+5
source

Source: https://habr.com/ru/post/1777371/


All Articles