开发者

how to Style gridview rows during runtime in wpf?

<ListView.View>
            <GridView>
                <GridViewColumn Header="اسم الشركة" DisplayMemberBinding="{Binding Path=company_name}" Width="200" />
  开发者_C百科              <GridViewColumn Header="رمز الشركة" DisplayMemberBinding="{Binding Path=symbol}" Width="Auto" />
                <GridViewColumn Header="سعر السهم"  DisplayMemberBinding="{Binding Path=price}" Width="Auto" />
                <GridViewColumn Header="نسبة التغير" DisplayMemberBinding="{Binding Path=change_percent}" Width="Auto" />
            </GridView>
        </ListView.View>

I have the previous XAML tags to define the listview I am using in my wpf - C# application I want to give each row in my listview a specific color that would be chosen during runtime

I know it might be a silly question but I need it badly and I have looked for it alot with no results

Can you help me ?


Is this something you are looking for?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜