Xaml下ListView的分组显示效果<StackPanel xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'
Xaml下ListView的分组显示效果            
xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'
Xaml下ListView的分组显示效果            
xmlns:d='clr-namespace:System.Windows.Data;assembly=PresentationFramework'>
Xaml下ListView的分组显示效果  
<StackPanel.Resources>
Xaml下ListView的分组显示效果    
<XmlDataProvider x:Key="MyData" XPath="/Info">
Xaml下ListView的分组显示效果      
<x:XData>
Xaml下ListView的分组显示效果        
<Info xmlns="">
Xaml下ListView的分组显示效果          
<Item ID="ISBN 45-F1" Name="Winner" Price="$32.05" Author="Aka" Catalog="Business"/>
Xaml下ListView的分组显示效果          
<Item ID="ISBN 54-32" Name="C++ Inside" Price="$10.00" Author="John" Catalog="Language"/>
Xaml下ListView的分组显示效果          
<Item ID="ISBN 14-A0" Name="Java Inside" Price="$9.00" Author="Tom" Catalog="Language"/>
Xaml下ListView的分组显示效果          
<Item ID="ISBN 56-78" Name="Stock Market" Price="$8.50" Author="Bob" Catalog="Business"/>
Xaml下ListView的分组显示效果          
<Item ID="ISBN AA-02" Name="Guideline for Health" Price="$19.00" Author="Lee" Catalog="Health"/>
Xaml下ListView的分组显示效果          
<Item ID="ISBN A4-07" Name="C# Inside" Price="$8.50" Author="Bob" Catalog="Language"/>
Xaml下ListView的分组显示效果        
</Info>
Xaml下ListView的分组显示效果      
</x:XData>
Xaml下ListView的分组显示效果    
</XmlDataProvider>
Xaml下ListView的分组显示效果    
<CollectionViewSource x:Key='src' Source="{Binding Source={StaticResource MyData}, XPath=Item}">
Xaml下ListView的分组显示效果      
<CollectionViewSource.GroupDescriptions>
Xaml下ListView的分组显示效果        
<d:PropertyGroupDescription PropertyName="@Catalog" />
Xaml下ListView的分组显示效果      
</CollectionViewSource.GroupDescriptions>
Xaml下ListView的分组显示效果    
</CollectionViewSource>
Xaml下ListView的分组显示效果  
</StackPanel.Resources>
Xaml下ListView的分组显示效果
Xaml下ListView的分组显示效果  
<ListView ItemsSource='{Binding Source={StaticResource src}}' BorderThickness="0">
Xaml下ListView的分组显示效果    
<ListView.GroupStyle>
Xaml下ListView的分组显示效果      
<GroupStyle>
Xaml下ListView的分组显示效果        
<GroupStyle.ContainerStyle>
Xaml下ListView的分组显示效果          
<Style TargetType="{x:Type GroupItem}">
Xaml下ListView的分组显示效果            
<Setter Property="Margin" Value="0,0,0,5"/>
Xaml下ListView的分组显示效果            
<Setter Property="Template">
Xaml下ListView的分组显示效果              
<Setter.Value>
Xaml下ListView的分组显示效果                
<ControlTemplate TargetType="{x:Type GroupItem}">
Xaml下ListView的分组显示效果                  
<Expander IsExpanded="True" BorderBrush="#FFA4B97F" BorderThickness="0,0,0,1">
Xaml下ListView的分组显示效果                    
<Expander.Header>
Xaml下ListView的分组显示效果                      
<DockPanel>
Xaml下ListView的分组显示效果                        
<TextBlock FontWeight="Bold" Text="{Binding Path=Name}" Margin="5,0,0,0" Width="100"/>
Xaml下ListView的分组显示效果                        
<TextBlock FontWeight="Bold" Text="{Binding Path=ItemCount}"/>
Xaml下ListView的分组显示效果                      
</DockPanel>
Xaml下ListView的分组显示效果                    
</Expander.Header>
Xaml下ListView的分组显示效果                    
<Expander.Content>
Xaml下ListView的分组显示效果                      
<ItemsPresenter />
Xaml下ListView的分组显示效果                    
</Expander.Content>
Xaml下ListView的分组显示效果                  
</Expander>
Xaml下ListView的分组显示效果                
</ControlTemplate>
Xaml下ListView的分组显示效果              
</Setter.Value>
Xaml下ListView的分组显示效果            
</Setter>
Xaml下ListView的分组显示效果          
</Style>
Xaml下ListView的分组显示效果        
</GroupStyle.ContainerStyle>
Xaml下ListView的分组显示效果      
</GroupStyle>
Xaml下ListView的分组显示效果    
</ListView.GroupStyle>
Xaml下ListView的分组显示效果    
<ListView.View>
Xaml下ListView的分组显示效果      
<GridView>
Xaml下ListView的分组显示效果        
<GridViewColumn Header="ID" DisplayMemberBinding="{Binding XPath=@ID}" Width="100" />
Xaml下ListView的分组显示效果        
<GridViewColumn Header="Name" DisplayMemberBinding="{Binding XPath=@Name}" Width="140" />
Xaml下ListView的分组显示效果        
<GridViewColumn Header="Price" DisplayMemberBinding="{Binding XPath=@Price}" Width="80" />
Xaml下ListView的分组显示效果        
<GridViewColumn Header="Author" DisplayMemberBinding="{Binding XPath=@Author}" Width="80" />
Xaml下ListView的分组显示效果      
</GridView>
Xaml下ListView的分组显示效果    
</ListView.View>
Xaml下ListView的分组显示效果  
</ListView>
Xaml下ListView的分组显示效果
</StackPanel>
Xaml下ListView的分组显示效果
Xaml下ListView的分组显示效果
Xaml下ListView的分组显示效果

相关文章:

  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
  • 2021-04-11
  • 2022-12-23
猜你喜欢
  • 2021-04-29
  • 2022-12-23
  • 2021-05-16
  • 2021-11-27
  • 2022-03-10
  • 2021-10-18
  • 2021-08-06
相关资源
相似解决方案