Feed on
Posts
Comments

Archive for the ‘WPF’ Category

Dynamic Styles - part 2

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 »

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 »

ListView MasterDetail

Here is a sample showing masterdetail using ListView

Here is a sample(rename .doc to .zip)

Read Full Post »

Handle Triple click

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 »

Styling ComboBox- part 2

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 »

Older Posts »