Archivi categoria: xaml

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

Windows 8 Store App and Universal App Multilanguage support

To realize multilanguage app now in Window Store app, Windows Phone 8.1 and universal app the resources are changed. This Microsoft post show how to use resource: http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh965326.aspx as you can see It is necessary set the attribute x:Uid in … Continua a leggere

Pubblicato in c#, Silverlight, Store Apps, Windows 8, WP8, xaml | Contrassegnato , , , | Lascia un commento

Silverlight Data visualization Toolkit

Today I suggest a GREAT articole to work on Silverlight Data visualization toolkit. http://msdn.microsoft.com/en-us/expression/dd433476.aspx The Silverlight Dava visualization toolkit is usable also with WP7 – WP8 (with some trick) You need these dll: System.Windows.Controls.DataVisualization.Toolkit.dll System.Windows.Controls.dll (Download it from here or … Continua a leggere

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

StringFormat double number on Binding

In the latest release of Silverlight and WPF, Microsoft has introduced StringFormat on Binding value. The StringFormat permit to avoit to write many converter to show the right data value. Microsoft on his pages show only this samples: String For … Continua a leggere

Pubblicato in Silverlight, WP7, WP8, WPF, 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

Bug Silverlight WPF Converter don’t refresh

Qualche giorno fa ho scoperto un bellissimo bug, che poi bug non e’ ma il risultato finale e’ pietoso. Se il nostro oggetto ha una proprieta MinutiLavorati e applichiamo un converter che converta i minuti in hh:mm tutto funziona correttamente … Continua a leggere

Pubblicato in .Net, Silverlight, WPF, xaml | Contrassegnato , , , , | Lascia un commento