private void SyncFontColor() { int colorIdx = AvailableColors.GetFontColorIndex(this.Font.Color); this.colorFontChooser.colorPicker.superCombo.SelectedIndex = colorIdx; this.colorFontChooser.txtSampleText.Foreground = this.Font.Color.Brush; this.colorFontChooser.colorPicker.superCombo.BringIntoView(); }
private void SyncFontColor() { Log.Debug("In SyncFontColor"); int colorIdx = AvailableColors.GetFontColorIndex(this.Font.Color); this.colorFontChooser.colorPicker.superCombo.SelectedIndex = colorIdx; // The following does not work. Why??? // this.colorFontChooser.colorPicker.superCombo.SelectedValue = this.Font.Color; this.colorFontChooser.colorPicker.superCombo.BringIntoView(); }