I have a SilverlightApp inside an iframe. I never had any trouble clicking on the items, but I recently added some content to the SilverlightApp's parent frame -- and now the clicks 'look' like they're off by that amount. Any ideas?
While I've got you here, I also had a ComboBox question. I found the only way to get comboBox.Items to contain the full list of items was to click on it. Are there any easier ways? Refresh didn't work...
int oldIndex = comboBox.SelectedIndex; |
// Populate the Combobox, just to make sure everything is up to date. |
comboBox.User.Click(); |
comboBox.SelectedIndex = 1; |
comboBox.Refresh(); |
comboBox.User.Click(); |
if (oldIndex == -1) |
{ |
// -1 index no longer exists |
oldIndex = 0; |
} |
for (int index = 0; index < comboBox.Items.Count(); ++index) |
{ |
... |
} |