Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Nested StackLayout does not render completely within a DataTemplate.

$
0
0

I have observed that a nested StackLayout does not render completely within a DataTemplate.

Specifically, only name, labor, and LaborCost gets rendered. All other values are ignored.

    <ListView ItemsSource="{Binding Services}">
        <ListView.ItemTemplate>
            <DataTemplate>
                <ViewCell>
                    <ViewCell.View>
                        <StackLayout Orientation="Vertical">
                            <Label Text="{Binding Name}" />
                            <StackLayout Orientation="Horizontal">
                                <Label Text="Labor:" />
                                <Label Text="{Binding LaborCost}" />
                            </StackLayout>

                            <StackLayout Orientation="Horizontal">
                                <Label Text="Materials:" />
                                <Label Text="{Binding Materials, Converter={StaticResource MaterialsToCostConverter}}" />
                            </StackLayout>

                            <Label Text="{Binding Description}" />
                        </StackLayout>
                    </ViewCell.View>
                </ViewCell>
            </DataTemplate>
        </ListView.ItemTemplate>
    </ListView>

Any suggestions?


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>