I'm using Csla 3.6 in .net 3.5 on a WPF project. I have a data provider that is trying to call a factory method that needs a criteria as a parameter. My issue is that I do not seem to figure out the syntax for this.
Here is my code:
-XAML-
<
csla:CslaDataProvider x:Key="TemplateBind" ObjectType="{x:Type blib:StandardTemplate}" FactoryMethod="GetStandardTemplate" IsAsynchronous="False" ManageObjectLifetime="True" > <csla:CslaDataProvider.FactoryParameters> <blib:StandardTemplateCriteria> <StandardTemplateCriteria.uniqHandle>0000-0000-0000-0000</StandardTemplateCriteria.uniqHandle> </blib:StandardTemplateCriteria> </csla:CslaDataProvider.FactoryParameters>-Factory Method Signature-
private
void DataPortal_Fetch(StandardTemplateCriteria criteria){ .... }
-StandardTemplateCriteria Signature-
public StandardTemplateCriteria(Guid? uniqHandle){ ....
}
I'm getting the error that uniqHandle is not found in type StandardTemplateCriteria. I can add the factory parameter in the code behind but I was hoping you guys might be able to show me how to do this in XAML.
Thanks
Copyright (c) Marimer LLC