【问题标题】:Datagrid Header background wpf数据网格标题背景wpf
【发布时间】:2014-03-21 03:35:46
【问题描述】:

我希望数据网格标题与图像中显示的一样

即 1.

之间没有列分隔线

【问题讨论】:

    标签: c# .net wpf xaml


    【解决方案1】:

    看这里: https://stackoverflow.com/a/4487292/376086 第一条评论说,没有分隔线。

    【讨论】:

      【解决方案2】:

      制作DataGrid Header的边框粗细...

      <DataGrid.HeaderStyle>
          <Style TargetType="{x:Type DataGridColumnHeader}" > 
               <Setter Property="BorderThickness" Value="0" />
          </Style>
      </DataGrid.HeaderStyle>
      

      【讨论】:

        猜你喜欢
        • 2017-06-07
        • 2011-02-20
        • 2018-02-02
        • 2011-11-04
        • 2011-05-28
        • 2016-05-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多