Hi Folks,
I want to bind ListView to a list of videos, and show the video inside the CellView through a Custom View called VideoView.
But the problem is that the VideoViewRenderer will repeat value (FileSource).
In the source code attached, I set Name of Video as the last 10 chars from the Source. When I show the value of variable Source inside VideoView through UILabel called NameOut, it shows a different value from the actual Source.
protected override void OnElementChanged (ElementChangedEventArgs e)
{
base.OnElementChanged (e);
if (e.OldElement != null)
return;
UILabel NameOut = new UILabel ();
NameOut.Text = e.NewElement.Source.Substring (e.NewElement.Source.Length-10);
base.SetNativeControl (NameOut);
}
You can run the example and you will see different value between Name(last 10 chars from the Source) and NameOut(last 10 chars from the Source), they both should have the same value. it looks like it will repeat the value after the third object. Is this some kind of memory issue?
Thanks,