How do I set the columns of the xamdatacards to automatically the fill CardView when the containeer is resized? I have the AutoFitCards set to
HorizontallyAndVertically, but the two columns don't expand when the view is expanded. Which property does this? I want the width of the column to be at 50% each when the control is expanded or reduced.
Hello Darlo,
Thank you for your post. I have been looking into it and suggest you set the CardViewSettings’ MaxCardCols Property to 2. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
This did not work, I wanted the maxcardcolumns to be 1, but since my xamdatacard was in an expander control I wanted the two columns to auto resize themselves and fill up the space. I deally, I wanted them to be sized the same. I was able to achieve this using the code below.
<Style TargetType="{x:Type igDP:DataRecordPresenter}">
<Setter Property="VerticalContentAlignment" Value="Top"/>
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
</Style>
Thanks for your help!
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.