Ejemplo n.º 1
0
        private void SyncFontTypeface()
        {
            string fontTypeFaceSb = FontInfo.TypefaceToString(this.selectedFont.Typeface);
            int    idx            = 0;

            foreach (var item in this.colorFontChooser.lstTypefaces.Items)
            {
                FamilyTypeface face = item as FamilyTypeface;
                if (fontTypeFaceSb == FontInfo.TypefaceToString(face))
                {
                    break;
                }
                idx++;
            }
            this.colorFontChooser.lstTypefaces.SelectedIndex = idx;
        }