I'm sure I'm not in the right forum, but this appears to be the only one I am able to post in.
I am using XamGrid, and when I add a ConditionalFormattingSetting of AllowConditionalFormatting=True, I get the below exception in the debug window. (The conditional formatting does work, however.)
A first chance exception of type 'System.InvalidOperationException' occurred in PresentationFramework.dll
If I set AllowConditionalFormatting="False", I do not get the exception. Thoughts? Code is below (Resources not shown).
<ig:XamGrid x:Name="JobsGrid" AutoGenerateColumns="False"> <ig:XamGrid.ConditionalFormattingSettings> <ig:ConditionalFormattingSettings AllowConditionalFormatting="True" /> </ig:XamGrid.ConditionalFormattingSettings> <ig:XamGrid.Columns> <ig:TextColumn Key="JobType" Width="100" /> <ig:TextColumn Key="JobName" HeaderText="Job" Width="100" /> <ig:TextColumn Key="Status" Width="80"> <ig:TextColumn.ConditionalFormatCollection> <ig:EqualToConditionalFormatRule Value="InProgress" StyleToApply="{StaticResource StatusGreen}" /> <ig:EqualToConditionalFormatRule Value="Unstarted" StyleToApply="{StaticResource StatusRed}" /> </ig:TextColumn.ConditionalFormatCollection> </ig:TextColumn> </ig:XamGrid.Columns></ig:XamGrid>
Hi, when I run your sample in VS2010 I do not get the exception, but when I run your sample in VS2012 I get the same exception that I get in my own project. What happens on your side when you run your sample in VS2012?
Hello Aline,
Thank you for your post. I have been trying to reproduce your issue without success. I am attaching a sample application(XamGridConditionalFormattingIssue.zip) that I have used for my tests. Please modify it or attach your own sample application in order to provide you with more accurate assistance.
Looking forward to hearing from you.