如何在wpf中创建带链接按钮的网格 [英] How to create Grid with link button in wpf

查看:83
本文介绍了如何在wpf中创建带链接按钮的网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



Hai我想在wpf的网格视图中显示数据,在该网格视图第一列带链接按钮可以指导我或发送片段

Hi,
Hai i want to show data in grid view in wpf ,In that grid view first column with link button can u guide me or send snippets

推荐答案

您好,您可以设置GridViewColumn并指定单元格模板。



Hello, you can set GridViewColumn and assign cell template.

<ListView>
      <ListView.View>
        <GridView>        
          <GridViewColumn Header="Test" Width="100">
            <GridViewColumn.CellTemplate>
              <DataTemplate>
                <Button Content="Your LinkButton here."></Button>
              </DataTemplate>
            </GridViewColumn.CellTemplate>
          </GridViewColumn>
        </GridView>
      </ListView.View>
      <ListViewItem>FirstItem</ListViewItem>
    </ListView>





问候

Joseph Leung



Regards
Joseph Leung


这篇关于如何在wpf中创建带链接按钮的网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆