Hi,
Someone can explain how I can get the Selected Item in ComboBox?
I want bind the selected Item to one variable in my ViewModel.
I did this code:
In my ItemsSource I did this:
ItemsSource
=
"{Binding Path=DataContext.OCTiposNotificacao, ElementName=LayoutRoot2}"
because the "OCTiposNotificacao" is a second collection, that means that I have two collections in my ViewModel, so I declare like Path=DataContext.OCTiposNotificacao.
And I want bind the Selected Item to TipoNotificacaoSeleccionado.
But all I get is a null value...
Any help?
Thanks