ErrorDialog - subclass/extend request

ErrorDialog - subclass/extend request

Old forum URL: forums.lhotka.net/forums/t/6999.aspx


Turntwo posted on Monday, May 25, 2009

Hi,

  I want to add some functionality to the WPF ErrorDialog control (trapping for certain exceptions and altering the behavoir/message accordingly), but it doesn't appear the ErrorDialog was built to be subclassed.  I tried building my own version (I really don't want to modify CSLA code if I can help it, since I like to get the benefit of updates without having to go through a merge process), but the CslaDataProvider only works properly with a Csla ErrorDialog (it doesn't register unless it is a Csla ErrorDialog). 
  Am I missing a way to do this?  Or can the ErrorDialog be enhanced in a future version to allow for this?  I like the concept alot, but would like more flexibility to customize the dialog. 

Thanks.

RockfordLhotka replied on Tuesday, May 26, 2009

That is a good point, the CslaDataProvider should probaby use an interface to interact with the dialog control so it is easier to create your own. I'll add this to the wish list.

Copyright (c) Marimer LLC