Here’s a quick tip how to show linebreaks in a tooltip in xaml. I wanted to show properties on multiple lines (in a multibinding): ‘ This results in the following tooltip (where the mouse hovers on the text “FTP”):
Archive for June, 2010
DateTime comparisons in .Net
Ok, in software it’s possible to bend time, like in the Matrix. This sounds pretty cool, but it’s only very frustrating! Here’s a simple scenario. I have a timer that elapses every second, and I want to check if it is equal to a specified DateTime variable (which has an accuracy of seconds). The first [...]
Same width for items in ItemsControl
When you use an ItemsControl (or a derived class like the ListBox) to display items in a collection, most of the time, you want to use the same column width for all items. You can achieve this by hardcoding a width for the item in the datatemplate, but we all know this smells. There’s a [...]