Skip to content

Commit f8fec60

Browse files
ES-975464 - Committed the changes
1 parent b5ef68e commit f8fec60

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

Add_image_to_cell.png

151 KB
Loading

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
# How to load images in a cell in wpf and uwp treegrid?
1+
# How to load images in a cell in WPF / UWP TreeGrid?
22

3-
## About the example
3+
This example illustrates how to load images in a cell in [WPF TreeGrid](https://www.syncfusion.com/wpf-controls/treegrid) and [UWP TreeGrid](https://www.syncfusion.com/uwp-ui-controls/treegrid) (SfTreeGrid).
44

5-
This example illustrates how to load images in a cell in [WPF TreeGrid](https://www.syncfusion.com/wpf-controls/treegrid) and [UWP TreeGrid](https://www.syncfusion.com/uwp-ui-controls/treegrid).
6-
7-
You can add the image to `TreeGrid` cell by using `TreeGridTemplateColumn`.
8-
9-
## XAML code:
5+
You can add the image to TreeGrid cell by using [TreeGridTemplateColumn](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.TreeGrid.TreeGridTemplateColumn.html).
106

7+
### XAML:
118
``` xml
129
<syncfusion:TreeGridTemplateColumn MappingName="ImageLink">
1310
<syncfusion:TreeGridTemplateColumn.CellTemplate>
@@ -19,8 +16,7 @@ You can add the image to `TreeGrid` cell by using `TreeGridTemplateColumn`.
1916
</syncfusion:TreeGridTemplateColumn>
2017
```
2118

22-
## c# code:
23-
19+
### C#:
2420
``` c#
2521
public class StringToImageConverter : IValueConverter
2622
{
@@ -35,4 +31,6 @@ public class StringToImageConverter : IValueConverter
3531
return null;
3632
}
3733
}
38-
```
34+
```
35+
36+
![How to load images in a cell in WPF / UWP TreeGrid](Add_image_to_cell.png)

0 commit comments

Comments
 (0)