public void SetFile(MediaMetadata mediaMetadata) { MediaMetadata = mediaMetadata; tableView.ReloadData(); for (var column = 0; column < tableView.TableColumns().Length; ++column) { var biggestWidth = 0f; for (int row = 0; row < tableView.RowCount; ++row) { var cellWidth = tableView.GetCell(column, row).CellSize.Width; biggestWidth = Math.Max(biggestWidth, cellWidth); } var c = tableView.TableColumns()[column]; c.Width = c.MaxWidth = biggestWidth; } }
private void SetStatusGps(MediaMetadata mm) { if (mm.HasPlaceName && !String.IsNullOrEmpty(mm.ToPlaceName())) { statusGps.StringValue = mm.ToPlaceName(); } else { statusGps.StringValue = mm.ToDms(); } }
public ImageViewItem(MediaMetadata mm) { Name = mm.Name; var uri = new Uri(mm.FullPath); if (uri.IsAbsoluteUri && uri.Scheme != Uri.UriSchemeFile) { ItemUrl = new NSUrl(mm.ThumbnailPath); _imageRepresentationType = IKImageBrowserItem.NSURLRepresentationType; } else { ItemUrl = new NSUrl(mm.FullPath, false); } CreatedTimestamp = mm.Timestamp; }