In a Windows 8 Metro application, I have a Combobox and I would like to call a method every time I select something else from the list.
I have my Method, and with ValueChanged="MyMethod" of a Slider, it works fine.
However, when i try with a combobox:
<ComboBox x:Name="Mentality" SelectedValue="Item1" SelectionChanged="MyMethod" >
<x:String>Item1</x:String>
<x:String>Item2</x:String>
<x:String>Item3/x:String>
I have this error:
No overload for 'MyMethod' matches delegate Windows.UI.Xaml.Controls.SelectionChangedEventHandler'