Tagged: WPF

WPF Popup Extension – “it’s overlapping other applications” problem

The WPF popup was designed to be the topmost over all other application windows. Chris Cavanagh wrote a blog entry on a workaround it and has since gone through a couple of iterations via the comments.

Here’s my version that deals with the popup being hosted in an ElementHost.

Advertisements

How to get the default control template for a XAML control without Expression Blend

If you need to get to the default control template for a 3rd party XAML control that you’re working on and you don’t have Expression Blend, one way is to use the following project.

  1. Download the “Show me the Template” project from Chris Sells’ site
  2. Open the project and add your third party assembly that you want the default template from
  3. Modify both code behind files reference to the PresentationFramework to point to the new reference and run the project

For Microsoft controls check this MSDN link

IDataErrorInfo usage

Used for implicitly displaying error information on UI controls that support it; all you need to do is to simply implement the IDataErrorInfo interface. That’s it; your underlying business object now supports displaying information on controls such as an Infragistics WinGrid.

Some links on IDataErrorInfo

Implementing ErrorInfo Support for Data Sources

Infragistics: Display Row/Cell Errors Using IDataErrorInfo