How can I change the color of selected item in combobox to my custom color in windows phone 8

562 Views Asked by At

The selected item color in a combo-box is Green (my phone accent color). How can I change that to a custom color (eg. Yellow)?

1

There are 1 best solutions below

0
Sunil Kumar S C On

It is not recommended to use Combobox in Windows Phone

Instaed Use List Picker

https://www.nuget.org/packages/WPtoolkit

Include this library into your references and add this in your xaml

xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"

<toolkit:ListPicker >
            <toolkit:ListPicker.ItemTemplate>
                <DataTemplate>
                 >Your Data Template in Normal Mode
                </DataTemplate>
            </toolkit:ListPicker.ItemTemplate>
            <toolkit:ListPicker.FullModeItemTemplate>
                <DataTemplate>
                    Your Data Template in Full Mode
                </DataTemplate>
            </toolkit:ListPicker.FullModeItemTemplate>
        </toolkit:ListPicker>