XAML - Binding to DataContext and using converter?

后端 未结 2 1528
一生所求
一生所求 2021-02-12 23:54

To bind to the current DataContext in XAML you can use:


How do you do this using a converter in the mix?

2条回答
  •  無奈伤痛
    2021-02-13 00:35

    Simply omit the path:

    
    

    Ah wait - I notice your question is tagged with Silverlight. Does this not work in Silverlight? If not, you may need to use the expanded syntax:

    
        
            
        
    
    

提交回复
热议问题