Posted in WPF on July 22, 2008 | No Comments »
In the last post we saw we could change the skin of the application without reloading the app. what is missing is when the user opens the app the next time, it doesnt remember the last theme selected. To start the app with the last selected theme when the user runs the app again is [...]
Read Full Post »
Posted in WPF, tagged WPF, ListView, ContextMenu on March 18, 2008 | No Comments »
When we want to display a ContextMenu based on the ListViewItem(Row) that was clicked, we have to handle ContextMenuOpening event and add our menuitems in that event. Attached sample shows how to do this.(change .doc to .zip)
Read Full Post »
Posted in WPF on March 11, 2008 | 1 Comment »
Here is a sample showing masterdetail using ListView
Here is a sample(rename .doc to .zip)
Read Full Post »
Posted in WPF on March 6, 2008 | No Comments »
if we ever want to do something when user triple clicks in/on the control, we can handle the PreviewMouseDown event and handle it like this
void ControlName_PreviewMouseDown(object sender, MouseButtonEventArgs e)
{
if (e.ClickCount == 3)
{
MessageBox.Show(”hello”);
}
}
Read Full Post »
Posted in WPF, tagged ComboBox, WPF on March 1, 2008 | No Comments »
Here is a sample to display multiple columns which are resizable, like in gridview in the panel of the combobox
Attached is a sample(change .doc to .zip)
comboboxsample1.doc
Read Full Post »