XAML - Binding to DataContext and using converter?

后端 未结 2 990
抹茶落季
抹茶落季 2021-02-12 23:35

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:17

    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:

    
        
            
        
    
    

提交回复
热议问题