CslaDataProvider

CslaDataProvider

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


ajj3085 posted on Wednesday, December 26, 2007

Hi,

I'm trying to make use of the CslaDataProvider.  I have a property on my Wpf usercontrol, which is set at design time only.  I'd like to use the value of that property in the CslaDataProvider.FactoryParameters to initialize the data provider.  I can't figure out the syntax. 

Anyone have ideas?

Thanks
Andy

RockfordLhotka replied on Friday, December 28, 2007

I haven't done exactly that. However, you can look at the ProjectList form in PTWpf to see an example of using data binding to bind a factory parameter to a control property. Well, actually the reverse, the control binds its property to the parameter, but the result is what you want. However, that technique does (I believe) rely on the control's property value actually changing to trigger the process.

That technique, btw, is exactly the same as if you use the ObjectDataProvider - I originally got that bit of XAML from an ODP example.

Copyright (c) Marimer LLC