Binding Dictionary> to ListBox in WPF

后端 未结 2 1533
慢半拍i
慢半拍i 2021-01-15 18:49

I have a Dictionary> where the key is the hostname of a machine that writes to a server, and the value is an list of Wr

2条回答
  •  庸人自扰
    2021-01-15 19:43

    Set DataContext property for inner control to show WritingMachine properties. Like so :

    
    

    This will change the DataContext to List for inner display control, where you can do normal binding. See full XAML code below :

    
                
                    
                        
                            
                                
                                    
                                    
                                
                                
                                
                                    
                                    
                                    
                                    
                                
                            
                        
                    
                
            
    

提交回复
热议问题