Archivi tag: ComboBox

Open Expand ComboBox or click a button from Code

In a WPF project I’had to open the ComboBox by pressing the near icon. To solve this request I’ll use this code: In WPF and Silverlight there is a class AutomationPeer very usefull to simulate the user action on the … Continua a leggere

Pubblicato in c#, Silverlight, WP7 | Contrassegnato , , , | Lascia un commento

Combobox Foreground don’t work

Today I’ve lost 1 hours because a combox don’t change it’s foreground as I specifyed on his property. I’m working on WPF project but I think this can happen also in silverlight Also specifying the Foreground to the combox, the … Continua a leggere

Pubblicato in c#, Silverlight, WP7, WPF | Contrassegnato , | Lascia un commento

Listbox ComboBox Highlight selected color

Today I’ve to customize the color of some controls part. The easy way to customize the selected color of Listbox and ComboBox is to override the SystemColor resource. Selected Item Background (listbox, combobox) Selected Item Background not focused (listbox) Selected … Continua a leggere

Pubblicato in Silverlight, WP7, WPF, xaml | Contrassegnato , , , , | Lascia un commento