WPF ListView grouping by 2 columns but display only 1 group header

前端 未结 2 1902
清酒与你
清酒与你 2021-01-07 01:28

A ListView displays a collection of the following class:

public class Employee
{
    private string _department;
    private string _manager;
    private str         


        
2条回答
  •  粉色の甜心
    2021-01-07 02:20

    Solved the main stumbling block, question 2 above: how to bind from the group header to a property that is not the grouping property.

    The solution is to change the data context to:{Binding Items}. The ItemSource properties are then available

    
        
            
                
                    
                    
                
            
        
    
    

提交回复
热议问题