private static void AddResultType(TableRow row, Result r) { TableCell cellType = new TableCell(); cellType.BorderBrush = Brushes.Black; cellType.BorderThickness = new Thickness(0.25); cellType.Padding = new Thickness(5); string iconPath = ResultConverter.GetIconPath(r.Type); Uri uri = new Uri(iconPath); BitmapImage bi = new BitmapImage(uri); Image icon = new Image(); icon.Height = 10; icon.Width = 10; icon.Source = bi; BlockUIContainer buic = new BlockUIContainer(icon); cellType.Blocks.Add(buic); row.Cells.Add(cellType); }