File path to file name String converter not working

后端 未结 1 1368
鱼传尺愫
鱼传尺愫 2021-01-27 06:07

Using a wpf ListBox I\'m trying to display a list of filename without displaying the full path (more convenient for user).

Data comes from an Observa

1条回答
  •  面向向阳花
    2021-01-27 06:26

    In ItemsSource binding converter applies to the whole list and not to each item in the collection. If you want to apply your converter per item you need to do it ItemTemplate

    
        
            
                
            
        
    
    

    0 讨论(0)
提交回复
热议问题