private void BindSelectedTheme()
{
for (int i = 0; i < this.ThemesComboBox.Items.Count; i++)
{
ComboBoxItem item = (ComboBoxItem)this.ThemesComboBox.Items[i];
Theme theme = (Theme)item.Tag;
if (theme != null && this.SelectedTheme != null && theme.Identifier == this.SelectedTheme.Identifier)
{
this.ThemesComboBox.SelectedIndex = i;
break;
}
}
}