<!--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 閱讀(1042) 評論(0)  編輯  收藏 所屬分類: WPF
          主站蜘蛛池模板: 通化市| 兴城市| 繁昌县| 准格尔旗| 平定县| 浑源县| 安徽省| 宜兰县| 遵化市| 二连浩特市| 南木林县| 米脂县| 会泽县| 新乡县| 木兰县| 桓仁| 通化市| 扎囊县| 忻城县| 武平县| 西吉县| 赣州市| 手机| 招远市| 麻栗坡县| 西乌珠穆沁旗| 扎赉特旗| 佛山市| 桦甸市| 东乡县| 浦北县| 陇南市| 长春市| 嵊泗县| 通山县| 东方市| 菏泽市| 淄博市| 富裕县| 离岛区| 台北县|