Since we have moved to Asus Transformer tablets, app starts crashing. It throws out null exception when i click on ComboBox to change webcam. There is no error when loading webcams to the ComboBox
WPF:
<ComboBox x:Name="cams" VerticalAlignment="Bottom" HorizontalAlignment="Center" Width="300" DisplayMemberPath="Name" Margin="10" FontSize="20" FontWeight="Bold"/>
C#
private void InitializeComboBox()
{
cams.ItemsSource = webCameraControl.GetVideoCaptureDevices();
if (cams.Items.Count > 0)
{
cams.SelectedItem = cams.Items[1];
cams.SelectedIndex = 1;
}
}
As I said, there is no error when loading cams to ItemsSource, only when I click on it to change camera