Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }