wpf user control design question.

wpf user control design question.

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


ajj3085 posted on Monday, September 29, 2008

HI,

I'm building a user control, that will show a list of information.  The idea is that this control will be used initial on a part edit screen, to display the order history for that part. 

I was thinking that I would add an event to the user control that is raised when it requests it's data.  More like the CslaDataSource does in the web world than the CslaDataProvider.

Does anyone see a problem with this?  If null is returned, the control will simply state it has no purchase history.  The other option is a method that gives the part object, which the control can use to get the purchase history.  I may need this anyway, to update the list after a save or possibly in response to a refresh command.

Any suggestions?

Copyright (c) Marimer LLC