Using Value Converters in WPF without having to define them as resources first

后端 未结 4 969
春和景丽
春和景丽 2020-12-09 04:20

Is it possible to use value converters without having to define them beforehand as resources?

Right now I have


    

        
4条回答
  •  再見小時候
    2020-12-09 04:31

    Technically I believe you can do this, but the XAML is so horrible that it will make the "lots of trivial resources" approach look like a haven of simplicity and clarity by comparison:

    
    

    I have not tested this because even reading it makes my eyes water...

提交回复
热议问题