This is kinda hard to define my question precisely but I ll try to do my best ! I actually have a lots (hundreds) of classical Bindings like this :
<ComboBox ItemsSource="{Binding Path=FrameNames}"/>
Where FrameNames is a properties of my code-behind. The thing is that I, now, have to do a binding on a method and I know that this is not the MVVM norm but that s what I want to do. The code (that doesn t work) look like :
<ComboBox ItemsSource="{Binding Path=LocalizationUtil.GetLocales()}"/>
是否有办法这样做? (即使这并不预先遵守多国机器设备模式!)
(This work if I do it in the code-behind, MyComboBox.Itemsource = LocalizationUtil.GetLocales() but of course it doesn t get noticed if there is a change)