Archivi tag: Listbox

WP8.1 ListView set item alignment with HorizontalContentAlignment Stretch

In Windows Phone 8.1 (WP8.1) the new ListView controls work different respect ListBox. In ListBox to stretch the child items it’s necessary use this code: In ListView this property don’t work as expected. To fix this behavior use this trick: … Continua a leggere

Pubblicato in Store Apps, Windows 8, windows phone, WP8, wp8.1, xaml | Contrassegnato , , , , , , | Lascia un commento

Silverlight ListBox, ItemsControl itemspanel canvas, item position

The problem is: How can I use the Canvas in ItemsPanelTemplate and position the item on the right coordinate? First solution I tryed: Second test: Results: The first solution will not work because in Silverlight not permit Binding on Attached … Continua a leggere

Pubblicato in c#, Silverlight, WP7, xaml | 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