Nitha Paul
Nitha Paul

Reputation: 1401

Changing the colour or checkbox in MultiselectList in Windows Phone

In my application i am using MultiselectList for selecting a list of student information. Here my issue is that, I am using a black background image for my page,

Because of this in white theme, the checkbox portion is invisible. I try to edit the template of checkbox item in Blend, but failed, while editing the template its populating a huge chunk of code in XAML.

While editing template instead of style its generating Template (I edited the Multilist Item using Blend).

In the real application i am using itemtemplate and assign the resource to this item template.

So I don't know where to assign this template, and where to edit in that template to change my checkbox colour, this is a blocker issue for me, my friend told me that without theme support the app won’t pass market place submission.

Upvotes: 1

Views: 915

Answers (1)

gprasant
gprasant

Reputation: 16023

Doing what you want to do, ie. editing the color of the checkbox, depending on the theme and background selected would be too much work. Have you tried using the default styles that come with Silverlight? For example, In this case, PhoneContrastbackgroundColor would be a good choice.

XAML code

<DataTemplate x:Key="whatever">
<TextBlock Text="ItemName"/>
<CheckBox BackgroundColor="{StaticResource PhoneContrastbackgroundColor}"/>
</DataTemplate>

Upvotes: 1

Related Questions