RowDefinition Auto problem on kanban cards

Can you help me please, I am creating some custom cards and I am using the grid control but when I use the RowDefinition property in auto I will not be respecting the size that I define

<Frame Style="{StaticResource StyleFrame}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="60" />
                <RowDefinition Height="1" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="80" />
            </Grid.RowDefinitions>
            <Grid Grid.Row="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="40" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Image
                    Grid.Column="0"
                    IsVisible="False"
                    Source="{StaticResource TrendingUpIcon}">
                    <Image.Triggers>
                        <DataTrigger
                            Binding="{Binding TypeMission}"
                            TargetType="Image"
                            Value="30">
                            <Setter Property="IsVisible" Value="True" />
                        </DataTrigger>
                    </Image.Triggers>
                </Image>
                <Image
                    Grid.Column="0"
                    IsVisible="False"
                    Source="{StaticResource GavelIcon}">
                    <Image.Triggers>
                        <DataTrigger
                            Binding="{Binding TypeMission}"
                            TargetType="Image"
                            Value="29">
                            <Setter Property="IsVisible" Value="True" />
                        </DataTrigger>
                    </Image.Triggers>
                </Image>
                <Label
                    Grid.Column="1"
                    Style="{StaticResource StyleLabelTitle}"
                    Text="{Binding Title}" />
            </Grid>
            <BoxView Grid.Row="1" Style="{StaticResource StyleBoxView}" />
            <Label
                Grid.Row="2"
                Style="{StaticResource StyleLabelDescription}"
                Text="Mei eu mollis albucius, ex nisl contentiones vix. Duo persius volutpat at, cu iuvaret epicuri mei. Duo posse pertinacia no, ex dolor contentiones mea. Nec omnium utamur dignissim ne. Mundi lucilius salutandi an sea, ne sea aeque iudico comprehensam. Populo delicatissimi ad pri. Ex vitae accusam vivendum pro. Wisi forensibus mnesarchum in cum. Per id impetus abhorreant, his no magna definiebas, inani rationibus in quo. Ut vidisse dolores est, ut quis nominavi mel. Ad pri quod apeirian concludatu" />
            <Grid Grid.Row="3">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="65" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <StackLayout Grid.Column="0">
                    <border:SfBorder BackgroundColor="{Binding ColorScore}" Style="{StaticResource BorderIcon}">
                        <Label
                            FontAttributes="Bold"
                            HorizontalOptions="CenterAndExpand"
                            Text="{Binding Score}"
                            TextColor="{AppThemeBinding Light={StaticResource LightSecondaryColor},
                                                        Dark={StaticResource DarkSecondaryColor}}"
                            VerticalOptions="CenterAndExpand" />
                    </border:SfBorder>
                </StackLayout>
                <StackLayout
                    Grid.Column="1"
                    Padding="{StaticResource PaddingStackLayoutInfoAdditional}"
                    HorizontalOptions="FillAndExpand">
                    <Label LineBreakMode="WordWrap" TextColor="{AppThemeBinding Light={StaticResource LightTertiaryColor}, Dark={StaticResource DarkSecondaryColor}}">
                        <Label.FormattedText>
                            <FormattedString>
                                <Span FontAttributes="Bold" Text="Asignado Por: " />
                                <Span Text="{Binding UserAssingsMission}" />
                            </FormattedString>
                        </Label.FormattedText>
                    </Label>
                    <Label TextColor="{AppThemeBinding Light={StaticResource LightTertiaryColor}, Dark={StaticResource DarkSecondaryColor}}">
                        <Label.FormattedText>
                            <FormattedString>
                                <Span FontAttributes="Bold" Text="Fecha Inicio: " />
                                <Span Text="{Binding StartDate, StringFormat='{0:dd/MM/yyyy}'}" />
                            </FormattedString>
                        </Label.FormattedText>
                    </Label>
                    <Label TextColor="{AppThemeBinding Light={StaticResource LightTertiaryColor}, Dark={StaticResource DarkSecondaryColor}}">
                        <Label.FormattedText>
                            <FormattedString>
                                <Span FontAttributes="Bold" Text="Fecha Fin: " />
                                <Span Text="{Binding EndDate, StringFormat='{0:dd/MM/yyyy}'}" />
                            </FormattedString>
                        </Label.FormattedText>
                    </Label>
                </StackLayout>
            </Grid>

        </Grid>
    </Frame>

2 Replies 1 reply marked as answer

YP Yuvaraj Palanisamy Syncfusion Team August 10, 2020 01:11 AM UTC

Hi Víctor Cruz Reyes,  
   
Currently we are validating the reported query and we will update the complete details on or before 12th August 2020.  
  
Regards,  
Yuvaraj 



YP Yuvaraj Palanisamy Syncfusion Team August 12, 2020 02:38 PM UTC

Hi Víctor Cruz Reyes,   
    
Thanks for your patience. 
 
We have analyzed your query and we have suggested you to set the desired width for Label by using WidthRequest property to resolve this problem. Also, we have attached the sample for your reference. 
 
Please find the sample from the below location. 
 
  
Regards,   
Yuvaraj 

Marked as answer
Loader.
Up arrow icon