Is there a way to turn off the user's ability to resize row height in cards?
and
Is there a way to turn off highlighting of fields on mouse over/selection without applying your own styles?
Hello,
Thank you for your post!
I have been looking into it and have created a small sample application for you. In the sample application I set the DataRecordSizingMode property to SizedToContentAndFixed. This way the rows cannot be resized. More about this property you can find on the following link:
http://help.infragistics.com/Help/Doc/WPF/2013.2/CLR4.0/html/InfragisticsWPF4.DataPresenter.v13.2~Infragistics.Windows.DataPresenter.DataRecordSizingMode.html.
Regarding your second question I have created a small style for the CellValuePresenter, where I set the colors of the following brushes to transparent: BackgroundActive, BackgroundHover, BackgroundSelected, BorderActiveBrush, BorderHoverBrush, BorderSelectedBrush. This way the hover and the selection colors are transparent.
Please find the attached sample application and feel free to let me know if you have any further questions on this matter.
Thank you for your help. The DataRecordSizingMode property did the trick for the first question but I wasn't seeing quite the desired results on the answer to the second question. After digging a little more I found that I also need to create the same style for DataRecordCellArea in addition to the same CellValuePresenter you created. I'm posting it below for completeness.
<Style TargetType="{x:Type igDP:DataRecordCellArea}"> <Setter Property="BackgroundActive" Value="Transparent"/> <Setter Property="BackgroundHover" Value="Transparent"/> <Setter Property="BackgroundSelected" Value="Transparent"/> <Setter Property="BorderActiveBrush" Value="Transparent"/> <Setter Property="BorderHoverBrush" Value="Transparent"/> <Setter Property="BorderSelectedBrush" Value="Transparent"/> Style>
Thank you for the feedback. I am glad I was able to help.