I have a custom element class that only resizes when the device is rotated. At the initial display, the lines are not changed.
public class MultiImageElement : Element, IElementSizing
What implements the interface IElementSizing:
#region IElementSizing implementation
public float GetHeight (UITableView tableView, NSIndexPath indexPath)
{
return 78;
}
#endregion
However, this is never called, and the line height remains the default.
I add elements to my root in the loop:
for (int i = 0; i < secFolder.Rows; i++)
{
sec.Add (new MultiImageElement (secFolder.ThumbnailPathsForRow (i), imageSize));
}
this.Root.Add (sec);
source
share