This is a migrated thread and some comments may be shown as answers.

[Solved] How can i add an icon at the top-left corner of Grid

0 Answers 119 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Lee
Top achievements
Rank 1
Lee asked on 01 Sep 2011, 07:07 AM
Hi, admin and every.
about the GridView, i want an icon shown at the top-left corner. i can modify the HeaderRowStyle and hard code an image.
just like this:
<Border x:Name="PART_IndicatorPresenter" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0,0,1,1" telerik:SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" Visibility="{TemplateBinding RowIndicatorVisibility}" Width="25">
<Border BorderBrush="{StaticResource GridView_HeaderInnerBorder}" BorderThickness="1">
<Image Source="iphone_main.png" />
</Border>
</Border>

but
how can i set this icon by databinding? for example, i will add one property for gridview named : Icon.  how can i binding this Icon property to Image's Source Property


thanks!
Tags
GridView
Asked by
Lee
Top achievements
Rank 1
Share this question
or