Hello,
I have a display bug, the "ViewCell" type publish lines, but when it scrolls results the bottom from screen not refreshs.
The associate code :
private class MissionsList : ListView
{
public MissionsList(List source)
: base()
{
this.ItemsSource = source;
this.ItemTemplate = new DataTemplate(() =>
{
Label titleLabel = new Label();
titleLabel.SetBinding(Label.TextProperty, "Title");
Label gainLabel = new Label();
gainLabel.SetBinding(Label.TextProperty, "Gain");
Label distanceLabel = new Label();
distanceLabel.SetBinding(Label.TextProperty, "Distance");
Label timeEndLabel = new Label();
timeEndLabel.SetBinding(Label.TextProperty, "TimeEnd");
return new ViewCell
{
View = new MissionRowData(titleLabel, timeEndLabel, distanceLabel, gainLabel)
};
});
And :
public MissionRowData(Label titleLabel, Label timeEndLabel, Label distanceLabel, Label gainLabel)
{
this.Padding = new Thickness(0, 5);
this.Orientation = StackOrientation.Horizontal;
var leftStack = new StackLayout
{
Orientation = StackOrientation.Vertical,
VerticalOptions = LayoutOptions.Center,
Spacing = 0,
WidthRequest = 150, //largeur de la colonnede gauche
Children =
{
titleLabel,
timeEndLabel
}
};
var rightStack = new StackLayout
{
Orientation = StackOrientation.Vertical,
HorizontalOptions = LayoutOptions.CenterAndExpand,
VerticalOptions = LayoutOptions.StartAndExpand,
Spacing = 0,
WidthRequest = 100,
Children =
{
distanceLabel,
gainLabel
}
};
this.Children.Add(leftStack);
this.Children.Add(rightStack);
}
To note, the bug not appear when the page is the first launch of the apply to be pubblish.