Archive for 'WPF' Category
WPF BagOfTricks and maybe a little bug in setting current date value.
10 May 2008I love wpf, but one of the most annoyng missing controls is a sort of dateTimePicker, luckily we have Kevin’s WPF Bag Of Trick that has a very useful set of controls. I begin to use this library today, I drop a DatePicker control on the page, and on page load I initialize with current [...]
WPF, convert System.Windows.Input.Key to char or string
6 May 2008Today I spent half an hour trying to solve a really stupid problem. I have a WPF windows where I have to intercept all char input from the keyboard and handle a char at a time. This is to work with a barcode reader with a keyboard connection.
I begin to intercept the event KeyPress, but [...]
WPF, IValueConverter and binding
2 April 2008People often look at WPF and XAML only for the possibility to create more appealing interface, but XAML is a lot more, because it is a way to create object with xml syntax. Here is an example on how to make some advanced binding.
Suppose I have some objects with a property called StartingTime that is [...]
WPF Swap the entire content in a column based on content
27 March 2008In previous post, I demonstrated how to change the content of a grid based on the content of a property of bound object, now I want to take that example further. In the old example I change the source of an image, but now I want to set a complete different template based on content, [...]
First steps on WPF, listview with template based on data
26 March 2008I’m moving the first serious steps on WPF trying to apply in real situation, the feeling is really good, and databinding and trigger are really exceptional. Suppose you have such a class
public class DataItem {
public String Name { get; set; }
public Boolean IsTrue { get; set; }
}
Then [...]
>