BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
I've used your example code from https://help.syncfusion.com/wpf/datagrid/conditional-styling#conditional-styling-of-rows-using-style-selector to dynamically change the row colour in my data grid, and it worked fine in my WPF dot Net Framework app. I'm now upgrading the app to dot Net Core, and the compiler is complaining that it:
MC4005: Cannot find the Style Property "Background" on the type 'Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl'
<local:RowStyleConverter x:Key="rowstyleconverter"/>
<Style x:Key="stylecolor" TargetType="Syncfusion:VirtualizingCellsControl">
<Setter Property="Background" Value="{Binding Converter={StaticResource rowstyleconverter}}"/>
</Style>
I had a look at the documentation for the VirtualizingCellsControl, and it didn't mention Background but did have RowSelectionBrush - however this still gave me the same error.
Why does your example not work with dotNet Core? How can I change the row colour in a dotNet Core WPF application?
Hi Russell,
Find the response to the
queries,
Query |
Response |
|
Why does your example not work with dotNet Core? |
|
|
How can I change the row colour in a dotNet Core WPF application? |
xmlns:syncfusionSfDataGrid=”clr-namespace:Syncfusion.UI.Xaml.Grid;assembly=Syncfusion.SfGrid.WPF”
For more information related to ambiguous type reference
exceptions, please refer to the below knowledge base documentation link, |
Regards,
Vijayarasan S
If this post is helpful, please consider Accepting it as the solution so that
other members can locate it more quickly.
Thanks, that worked perfectly