Click here to Skip to main content
15,741,407 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want to learn how to put image inside font color/highlight color combobox's header , for example, like the ones in Microsoft Office Word for font color and highlight color combobox? or are they somewhat complex comboboxes( with buttons, colomns..)
I created simple combobox with colored Rectangles
as items, when you select a color (textbox), it will be applyed on selected text and the selected rectangle will be shown in the header of the the combobox
I just want the apperiance of the font color combobox like the one in Microsoft Office Word, how to do this?
(Sorry for my English!)

part of Xaml :

<local:mycombobox name="MyFColorComoB" hieght="26" width="40" prekeydown="MyFColorCB_PreKeyDown" xmlns:local="#unknown">

<comboboxitem>
<rectangle width="20" stroke="Black" height="20" fill="LightGray" />
</comboboxitem>

<comboboxitem>
<rectangle width="20" stroke="Black" height="20" fill="Orange" />
</comboboxitem></code>

</local:mycombobox>
Posted
Updated 27-May-10 5:49am
v2

1 solution

See this example.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900