<!--hide the header at the top of each grid column-->
                                      <ListView.Resources>
                                          <Style TargetType="GridViewColumnHeader">
                                              <Setter Property="Visibility" Value="Collapsed" />
                                          </Style>
                                      </ListView.Resources>
                                      <!--Remove highlight effect from ListViewItem-->
                                      <ListView.ItemContainerStyle>
                                          <Style TargetType="{x:Type ListViewItem}">
                                              <Setter Property="Background" Value="Transparent" />
                                              <Setter Property="Template">
                                                  <Setter.Value>
                                                      <ControlTemplate TargetType="{x:Type ListViewItem}">
                                                          <Border BorderBrush="Transparent" 
                                                                              BorderThickness
          ="0" 
                                                                              Background
          ="{TemplateBinding Background}">
                                                              <GridViewRowPresenter 
                                                                              
          HorizontalAlignment="Stretch" 
                                                                              VerticalAlignment
          ="{TemplateBinding VerticalContentAlignment}" 
                                                                              Width
          ="Auto" 
                                                                              Margin
          ="0,3,0,0" 
                                                                              Content
          ="{TemplateBinding Content}"/>
                                                          </Border>
                                                      </ControlTemplate>
                                                  </Setter.Value>
                                              </Setter>
                                          </Style>
                                      </ListView.ItemContainerStyle>
          posted on 2015-06-11 11:08 Ying-er 閱讀(1035) 評論(0)  編輯  收藏 所屬分類: WPF
          主站蜘蛛池模板: 镇安县| 吴桥县| 乌拉特中旗| 鄯善县| 顺平县| 绿春县| 宁都县| 措勤县| 拜城县| 游戏| 朝阳区| 大名县| 保德县| 东乌| 琼结县| 四川省| 望江县| 克拉玛依市| 夏津县| 金寨县| 洞头县| 恭城| 石门县| 吴江市| 张家川| 胶州市| 唐山市| 建始县| 松原市| 偃师市| 佛教| 浮山县| 东阿县| 岑溪市| 改则县| 右玉县| 静海县| 巴彦淖尔市| 孟州市| 开化县| 扬州市|