Hi team,
I am using CellStyleSelector documented in this link. However, in the following code
I want to know the column index of the GridViewCell. I know the container object is type of GridViewCell. However i don't know how to continue. I read some class documentation, finding no proper ways. Any ideas?
Thanks,
Jingfei
I am using CellStyleSelector documented in this link. However, in the following code
public
override
Style SelectStyle(
object
item, DependencyObject container)
{
if
(item
is
Club)
{
Club club = item
as
Club;
if
(club.StadiumCapacity > 50000)
{
return
BigStadiumStyle;
}
else
{
return
SmallStadiumStyle;
}
}
return
null
;
}
Thanks,
Jingfei