初学者问题:等宽动态列表视图的列和行复选框 [英] beginner question: equal width dynamic listview column and row check box

查看:61
本文介绍了初学者问题:等宽动态列表视图的列和行复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在两行(项目)的复选框列之后得到一个等宽的2列拉伸到最大的列表视图

I want to get a listview with 2 column of equal width stretched to max after the check box column for each row (item)

 

似乎没有简单的方法可以单独在xaml中实现相同的宽度,也没有找到任何方法可以通过sizeChanged事件处理程序更改listview内listview内gridview列的宽度.还是有一个简单而简单的方法而没有 后面有大量代码?

there seems to be no easy way to achieve equal width in xaml alone, nor did I find any way to change the width of the gridview columns inside the listview from sizeChanged event handler for the listview. or is there a simple easy way without massive code behind?

这似乎倒退了相对于非WPF环境中的Winform ListView.我只需用winform中的几行代码就可以轻松实现所有这些目标.

This seems to backward  relative to winform listview in non wpf enviroment. I could easily achieve all these with only a few lines of code in winform .

推荐答案

嘿,FS-ab,希望您一切都好.

Hey Fs - ab, I hope you're fine.

您可以检查以下链接,以获取有关您的问题的更多帮助:

You may check the following link for more help with your issue:

http://stackoverflow.com/questions/560581/如何自动调整大小并右对齐gridviewcolumn-data-in-wpf

请不要忘记将我的回复标记为答案".如果有帮助的话,或者投票给解决方案的钥匙.

Please, don't forget to mark my reply as "Answer" if it helps or vote it up if it gives a key to the solution.

先谢谢您,祝您好运.


这篇关于初学者问题:等宽动态列表视图的列和行复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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