I am simply trying to bind to a variable that is a list of strings in the code behind and it is not working. Can you bind to the Enumeration property of a ValueConstrainst in a xamTextEditor?
<Style x:Key="PCLFieldStyle" TargetType="{x:Type igEditors:XamTextEditor}">
<Setter Property="ValueConstraint">
<Setter.Value>
<igEditors:ValueConstraint Enumeration="{Binding Path=PCLList}"/>
</Setter.Value>
</Setter>
</
Style>
...
<
igDP:Field Name="PCL" >
</igDP:Field.Settings>
</igDP:Field>
code behind:
public
List<string> PCLList;
void Initialize()
{
PCLList =
new List<string>(GetPCLListMethod());
}
Hello,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I create a class in which I put the list with the strings and make the Binding’s Source property to an instance of that class. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
I was able to get it to work by following your example.
Thanks!