Hi team,
we are facing strange behavior of SfListView. If we put any Xamarin.Forms shape (Ellipse, Rectangle, ...) into SfListView item template, then the shape is correctly rendered the first time the list view is displayed. Any other time the listView is displayed, the shape is no more displayed.
Can you take a look what is the cause of the problem, please?
Thanks,
Regards,
Peter
|
private void HandleOnButton1Clicked(object sender, EventArgs e)
{
_contentView1 = new ListViewContent();
_contentLabel.Text = "Content 1";
_contentPresenter.Content = _contentView1;
}
private void HandleOnButton2Clicked(object sender, EventArgs e)
{
_contentView2 = new ListViewContent();
_contentLabel.Text = "Content 2";
_contentPresenter.Content = _contentView2;
} |
Hi Lakshmi,
thank you for your quick response.
Our ContentViews are pretty complicated, so we cache them for further use, because their creation can take "visible" amount of time (especially on older devices).
On the other hand, if we use CollectionView instead of SfListView, then shapes are displayed correctly every time...
Peter