Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Set auto width and word wrap for cell value
posted

My XamDataCards is populated via DataSource with very different values. So I cannot set manually width and height for Cells.I tried to AutoArrange them but with no result. What I need is to set auto for width and height with possibility to wrap long text in cell. Below is my present code.

<igDP:XamDataCards 
                Name="ZamowieniaDoWeryfikacji"
                Theme="LunaOlive"
                FontSize="12"
                FontFamily="Segoe UI"
                Background="White"
                BorderBrush="Black"
                BorderThickness="1">
                <igDP:XamDataCards.ViewSettings>
                    <igDP:CardViewSettings HeaderPath="idZamowienia" AutoFitCards="Horizontally" AllowCardHeightResizing="True" AllowCardWidthResizing="True" MaxCardCols="1" OverridesDefaultStyle="True" Padding="5" ShouldCollapseCards="False" Orientation="Horizontal" />
                </igDP:XamDataCards.ViewSettings>

<igDP:XamDataCards.FieldLayoutSettings>
                    <igDP:FieldLayoutSettings AutoGenerateFields="False" AllowAddNew="False" AllowDelete="False"  />
                </igDP:XamDataCards.FieldLayoutSettings>
                <igDP:XamDataCards.FieldLayouts>
                    <igDP:FieldLayout  >
                        <igDP:FieldLayout.Settings>
                            <igDP:FieldLayoutSettings AllowAddNew="False" AllowDelete="False" HighlightPrimaryField="Highlight" />
                        </igDP:FieldLayout.Settings>
                        <igDP:FieldLayout.FieldSettings>
                            <igDP:FieldSettings AllowEdit="False" AllowRecordFiltering="True" />
                        </igDP:FieldLayout.FieldSettings>
                        <igDP:Field Name="Klient">
                            <igDP:Field.Settings>
                                <igDP:FieldSettings  LabelPresenterStyle="{Binding Source={StaticResource hiddenLabel}}" Width="450" />
                            </igDP:Field.Settings>
                        </igDP:Field>
                        <igDP:Field Name="Opis" ColumnSpan="2">
                            <igDP:Field.Settings>
                                <igDP:FieldSettings LabelPresenterStyle="{Binding Source={StaticResource hiddenLabel}}" Width="450" />
                            </igDP:Field.Settings>
                        </igDP:Field>
                    </igDP:FieldLayout>
                </igDP:XamDataCards.FieldLayouts>
            </igDP:XamDataCards>