.net – ListBox边距在Windows 7和Windows 8中是不一样的

我已经设计了一个 WPF ListBox.我在 Windows 8下开发.安装后的样式如下(见图),当我在Windows 7中测试应用程序时,边距不一样.在imagen中可以看到,节点之间的距离在Windows 8中为1px,Windows 7中为0 px.

你知道为什么是这样,怎么解决呢?

提前致谢.

我实际上设法摆脱它自己,它看起来像是ListViewItem样式正在被Windows8改变,添加到ListView的本地资源的样式已经为我工作了.
<ListView.Resources>
        <Style TargetType="ListViewItem">
            <Setter Property="Margin" Value="0"/>
            <Setter Property="Padding" Value="0"/>
            <Setter Property="BorderThickness" Value="0"/>
        </Style>
    </ListView.Resources>

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...