Category Archives: WPF

Silverlight follow-up: WPF memory leak

In my last post, I wrote about a memory leak that is easy to come by in WPF. I converted the WPF test application I was using to Silverlight to see whether or not Silverlight suffers from the same memory … Continue reading

Posted in Silverlight, WPF | Comments Off on Silverlight follow-up: WPF memory leak

WPF Gotcha: Easy Memory Leak

I strongly suggest that you implement INotifyPropertyChanged on any class that will be a binding source. I’ve been doing some memory profiling recently and ran into a HashTable outside of my code that was holding on to a reference to … Continue reading

Posted in WPF | Comments Off on WPF Gotcha: Easy Memory Leak

Bindable DataGrid Columns

Currently the WPF DataGrid supports two ways in which to generate columns: AutoGenerate and XAML declaration. AutoGenerating columns will produce a column for every property in the ItemsSource class, but the behavior can be altered by using the AutoGeneratingColumn event … Continue reading

Posted in C#, WPF | 6 Comments

Ribbon Tab Definition on UserControl

We’ve been using the Ribbon control provided by Microsoft on a project I’ve been working on. We started with the WPF toolkit Ribbon but recently upgraded to the .Net 4.0 version. The 4.0 version is much better than the WPF … Continue reading

Posted in srt, WPF | 9 Comments

WPF – Combo Box SelectedItem Binding

I recently was debugging a strange issue we were seeing with our combo boxes. When the data context changed, the combo box would lose the selected item and appear blank but the list of possible selections would be correct. I … Continue reading

Posted in srt, WPF | Comments Off on WPF – Combo Box SelectedItem Binding

WPF LL: TextBoxes that just keep growing

This problem was probably discovered accidentally and shows me once again how important it is to have non-technical and new people testing your programs. The problem encountered was that the TextBoxes on one of our Windows would just keep expanding … Continue reading

Posted in srt, WPF | 4 Comments

WPF LL: XML Binding and Data Converters

In the project I’ve been working on, we’re binding a bunch of controls to an XML document. In our bindings, we are extensively using XPath. One of the things that did not occur to me immediately, and seems very obvious … Continue reading

Posted in .Net, WPF | Comments Off on WPF LL: XML Binding and Data Converters

WPF Lessons Learned – Use ContextMenu.Items over ContextMenu.ItemsSource

I’ve been working on a WPF project for a client and have learned a lot in the process. I’d like to touch on some of these things. This first post will be about creating a ContextMenu. I’ve had to create … Continue reading

Posted in .Net, C#, WPF | Comments Off on WPF Lessons Learned – Use ContextMenu.Items over ContextMenu.ItemsSource

Study Group – WPF

For the last two weeks Anne Marsan has led study group. Both of her sessions were about WPF and she led them by writing up instructions on how to produce a project that illustrated what she wanted to teach. Her … Continue reading

Posted in .Net, Study Group, WPF | Comments Off on Study Group – WPF