1 instantiation of XmlLanguage
PresentationCore (1)
Core\CSharp\System\Windows\Markup\XmlLanguage.cs (1)
143_cache[lowercase] = language = new XmlLanguage(lowercase);
180 references to XmlLanguage
PresentationCore (123)
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (1)
599foreach (KeyValuePair<XmlLanguage, string> localizedFamilyName in compositeFamily.FamilyNames)
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (4)
1119internal LocalizedName(XmlLanguage language, string name) : this(language, name, language.GetEquivalentCulture().LCID) 1122internal LocalizedName(XmlLanguage language, string name, int originalLCID) 1129internal XmlLanguage Language 1193private XmlLanguage _language; // the language identifier
Core\CSharp\MS\Internal\FontFace\CompositeFontInfo.cs (10)
39private Dictionary<XmlLanguage, ushort[]> _familyMapRangesByLanguage; 51_familyNames = new LanguageSpecificStringDictionary(new Dictionary<XmlLanguage,string>(InitialCultureCount)); 73_familyMapRangesByLanguage = new Dictionary<XmlLanguage, ushort[]>(InitialCultureCount); 164Dictionary<XmlLanguage, ushort[]> table = new Dictionary<XmlLanguage, ushort[]>(_familyMapRangesByLanguage.Count); 165foreach (XmlLanguage language in _familyMapRangesByLanguage.Keys) 177internal ushort[] GetFamilyMapsOfLanguage(XmlLanguage language) 184foreach (XmlLanguage matchingLanguage in language.MatchingLanguages) 249private ushort[] CreateFamilyMapRanges(XmlLanguage language) 367internal ICollection<XmlLanguage> FamilyMapLanguages
Core\CSharp\MS\Internal\FontFace\CompositeFontParser.cs (3)
107private XmlLanguage GetAttributeAsXmlLanguage() 127return (XmlLanguage)value; 531XmlLanguage language = null;
Core\CSharp\MS\Internal\FontFace\FontDifferentiator.cs (4)
29internal static IDictionary<XmlLanguage, string> ConstructFaceNamesByStyleWeightStretch( 37Dictionary<XmlLanguage, string> faceNames = new Dictionary<XmlLanguage, string>(1); 38faceNames.Add(XmlLanguage.GetLanguage("en-us"), faceName);
Core\CSharp\MS\Internal\FontFace\IFontFamily.cs (1)
31IDictionary<XmlLanguage, string> Names
Core\CSharp\MS\Internal\FontFace\ITypefaceMetrics.cs (1)
78IDictionary<XmlLanguage, string> AdjustedFaceNames { get; }
Core\CSharp\MS\Internal\FontFace\PhysicalFontFamily.cs (7)
40private IDictionary<XmlLanguage, string> _familyNames; 53private static IDictionary<XmlLanguage, string> ConvertDictionary(IDictionary<CultureInfo, string> dictionary) 55Dictionary<XmlLanguage, string> convertedDictionary = new Dictionary<XmlLanguage, string>(); 61XmlLanguage language = XmlLanguage.GetLanguage(pair.Key.Name); 108IDictionary<XmlLanguage,string> IFontFamily.Names
Core\CSharp\MS\Internal\Shaping\CompositeFontFamily.cs (2)
111IDictionary<XmlLanguage, string> IFontFamily.Names 309ushort[] familyMaps = _fontInfo.GetFamilyMapsOfLanguage(XmlLanguage.GetLanguage(culture.IetfLanguageTag));
Core\CSharp\MS\Internal\Shaping\CompositeTypefaceMetrics.cs (1)
191public IDictionary<XmlLanguage, string> AdjustedFaceNames
Core\CSharp\MS\Internal\TextFormatting\TextShapeableCharacters.cs (1)
185XmlLanguage.GetLanguage(CultureMapper.GetSpecificCulture(_properties.CultureInfo).IetfLanguageTag),
Core\CSharp\System\Windows\Markup\XmlLanguage.cs (24)
59private static XmlLanguage _empty = null; 90public static XmlLanguage Empty 120public static XmlLanguage GetLanguage(string ietfLanguageTag) 122XmlLanguage language; 129language = (XmlLanguage) _cache[lowercase]; 140language = (XmlLanguage) _cache[lowercase]; 327internal bool RangeIncludes(XmlLanguage language) 478internal struct MatchingLanguageCollection : IEnumerable<XmlLanguage>, IEnumerable 480private XmlLanguage _start; 481public MatchingLanguageCollection(XmlLanguage start) 494IEnumerator<XmlLanguage> IEnumerable<XmlLanguage>.GetEnumerator() 506internal struct MatchingLanguageEnumerator : IEnumerator<XmlLanguage>, IEnumerator 508private readonly XmlLanguage _start; 509private XmlLanguage _current; 514public MatchingLanguageEnumerator(XmlLanguage start) 520_maxCultureDepth = XmlLanguage.MaxCultureDepth; 528_maxCultureDepth = XmlLanguage.MaxCultureDepth; 531public XmlLanguage Current 563XmlLanguage prefixLanguage = _current.PrefixLanguage; 587XmlLanguage parentLanguage = XmlLanguage.GetLanguage(culture.IetfLanguageTag); 672private XmlLanguage PrefixLanguage 679return XmlLanguage.GetLanguage(prefix); // throws on null
Core\CSharp\System\Windows\Markup\XmlLanguageConverter.cs (4)
90return XmlLanguage.GetLanguage(ietfLanguageTag); 128XmlLanguage xmlLanguage = value as XmlLanguage; 137MethodInfo method = typeof(XmlLanguage).GetMethod(
Core\CSharp\System\Windows\Media\CultureSpecificStringDictionary.cs (38)
31public sealed class LanguageSpecificStringDictionary : IDictionary<XmlLanguage, string>, SC.IDictionary 33private IDictionary<XmlLanguage, string> _innerDictionary; 38internal LanguageSpecificStringDictionary(IDictionary<XmlLanguage, string> innerDictionary) 49public IEnumerator<KeyValuePair<XmlLanguage, string>> GetEnumerator() 69public bool TryGetValue(XmlLanguage key, out string value) 98public void Add(KeyValuePair<XmlLanguage, string> item) 115public bool Contains(KeyValuePair<XmlLanguage, string> item) 124public void CopyTo(KeyValuePair<XmlLanguage, string>[] array, int index) 145public bool Remove(KeyValuePair<XmlLanguage, string> item) 178foreach (KeyValuePair<XmlLanguage, string> item in _innerDictionary) 194foreach (KeyValuePair<XmlLanguage, string> item in _innerDictionary) 208public void Add(XmlLanguage key, string value) 216public bool ContainsKey(XmlLanguage key) 224public bool Remove(XmlLanguage key) 232public string this[XmlLanguage key] 242public ICollection<XmlLanguage> Keys 265XmlLanguage language = TryConvertKey(key); 301XmlLanguage language = TryConvertKey(key); 310XmlLanguage language = TryConvertKey(key); 342private XmlLanguage ConvertKey(object key) 344XmlLanguage language = TryConvertKey(key); 350throw new ArgumentException(SR.Get(SRID.CannotConvertType, key.GetType(), typeof(XmlLanguage)), "key"); 356private XmlLanguage TryConvertKey(object key) 358XmlLanguage language = key as XmlLanguage; 364return XmlLanguage.GetLanguage(name); 376protected IDictionary<XmlLanguage, string> _innerDictionary; 377protected IEnumerator<KeyValuePair<XmlLanguage, string>> _enumerator; 379internal EntryEnumerator(IDictionary<XmlLanguage, string> names) 409private KeyValuePair<XmlLanguage, string> GetCurrentEntry() 412KeyValuePair<XmlLanguage, string> entry = _enumerator.Current; 427KeyValuePair<XmlLanguage, string> entry = GetCurrentEntry(); 454protected IDictionary<XmlLanguage, string> _innerDictionary; 456internal BaseCollection(IDictionary<XmlLanguage, string> names) 494internal KeyCollection(IDictionary<XmlLanguage, string> names) : base(names) 508internal KeyEnumerator(IDictionary<XmlLanguage, string> names) : base(names) 527internal ValueCollection(IDictionary<XmlLanguage, string> names) 542internal ValueEnumerator(IDictionary<XmlLanguage, string> names) : base(names)
Core\CSharp\System\Windows\Media\FamilyMap.cs (7)
40private XmlLanguage _language; 80XmlLanguage language, 169public XmlLanguage Language 178_language = (value == XmlLanguage.Empty) ? null : value; 204internal static bool MatchLanguage(XmlLanguage familyMapLanguage, XmlLanguage language) 220internal static bool MatchCulture(XmlLanguage familyMapLanguage, CultureInfo culture)
Core\CSharp\System\Windows\Media\FamilyTypeface.cs (1)
213public IDictionary<XmlLanguage, string> AdjustedFaceNames
Core\CSharp\System\Windows\Media\FontFamilyConverter.cs (3)
190if (culture != null && names.TryGetValue(XmlLanguage.GetLanguage(culture.IetfLanguageTag), out name)) 195else if (parentCulture != null && names.TryGetValue(XmlLanguage.GetLanguage(parentCulture.IetfLanguageTag), out name)) 200else if (names.TryGetValue(XmlLanguage.Empty, out name))
Core\CSharp\System\Windows\Media\GlyphRun.cs (6)
142XmlLanguage language 237XmlLanguage language 295XmlLanguage language, 346XmlLanguage language, 1189public XmlLanguage Language 2512private XmlLanguage _language;
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (5)
510IDictionary<XmlLanguage, string> ITypefaceMetrics.AdjustedFaceNames 518IDictionary<XmlLanguage, string> adjustedLanguageFaceNames = new Dictionary<XmlLanguage, string>(adjustedFaceNames.Count); 522adjustedLanguageFaceNames[XmlLanguage.GetLanguage(pair.Key.IetfLanguageTag)] = pair.Value; 1775XmlLanguage.GetLanguage(cultureInfo.IetfLanguageTag),
PresentationFramework (57)
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (2)
263XmlLanguage language = (XmlLanguage)textContainer.Parent.GetValue(FrameworkElement.LanguageProperty);
src\Framework\MS\Internal\FrameworkObject.cs (1)
214internal XmlLanguage Language
src\Framework\MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (2)
201XmlLanguage lang = XmlLanguage.GetLanguage(languageString);
src\Framework\MS\Internal\Text\DynamicPropertyReader.cs (2)
311XmlLanguage language = (XmlLanguage) element.GetValue(FrameworkElement.LanguageProperty);
src\Framework\System\Windows\Controls\ContentPresenter.cs (3)
975private void CacheLanguage(XmlLanguage language) 1099XmlLanguage language = container.Language; 1208private XmlLanguage _language;
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (4)
161return (val is XmlLanguage) ? ((XmlLanguage)val).GetEquivalentCulture().LCID : CultureInfo.InvariantCulture.LCID; 1287XmlLanguage textLanguage = (context != null) ? 1288(XmlLanguage)context.GetValue(FrameworkElement.LanguageProperty) :
src\Framework\System\Windows\Controls\TextSearch.cs (2)
838XmlLanguage language = (XmlLanguage) o;
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
1295_culture = ((XmlLanguage) target.GetValue(FrameworkElement.LanguageProperty)).GetSpecificCulture();
src\Framework\System\Windows\Data\BindingGroup.cs (1)
1319_culture = ((System.Windows.Markup.XmlLanguage) mentor.GetValue(FrameworkElement.LanguageProperty)).GetSpecificCulture();
src\Framework\System\Windows\Data\CollectionViewSource.cs (2)
832XmlLanguage language = (d != null) ? (XmlLanguage)d.GetValue(FrameworkElement.LanguageProperty) : null;
src\Framework\System\Windows\Documents\FixedDSBuilder.cs (2)
172XmlLanguage language = (XmlLanguage) _fixedPage.GetValue(FrameworkElement.LanguageProperty);
src\Framework\System\Windows\Documents\FixedSOMPage.cs (1)
100element.SetValue(FrameworkContentElement.LanguageProperty, XmlLanguage.GetLanguage(_cultureInfo.IetfLanguageTag));
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (1)
238element.SetValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(_cultureInfo.IetfLanguageTag));
src\Framework\System\Windows\Documents\Glyphs.cs (1)
1085public GlyphRun CreateGlyphRun(Point origin, XmlLanguage language)
src\Framework\System\Windows\Documents\Speller.cs (12)
208XmlLanguage language; 731XmlLanguage language = GetCurrentLanguage(start); 777XmlLanguage language = GetCurrentLanguage(caretPosition); 857XmlLanguage language; 1164private void ExpandToWordBreakAndContext(ITextPointer position, LogicalDirection direction, XmlLanguage language, 1399private ITextPointer SearchForWordBreaks(ITextPointer position, LogicalDirection direction, XmlLanguage language, int minWordCount, bool stopOnError) 1471private ITextPointer GetNextLanguageTransition(ITextPointer position, LogicalDirection direction, XmlLanguage language, ITextPointer haltPosition) 1583private XmlLanguage GetCurrentLanguage(ITextPointer position) 1585XmlLanguage language; 1594private CultureInfo GetCurrentCultureAndLanguage(ITextPointer position, out XmlLanguage language) 1604language = XmlLanguage.GetLanguage(cultureInfo.IetfLanguageTag); 1608language = (XmlLanguage)position.GetValue(FrameworkElement.LanguageProperty);
src\Framework\System\windows\Documents\TextEditor.cs (3)
497XmlLanguage language = (XmlLanguage)((ITextPointer)range.Start).GetValue(FrameworkElement.LanguageProperty); 505range.ApplyPropertyValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(inputCultureInfo.IetfLanguageTag));
src\Framework\System\windows\Documents\TextEditorSpelling.cs (2)
166XmlLanguage language = (XmlLanguage)spellingError.Start.GetValue(FrameworkElement.LanguageProperty);
src\Framework\System\Windows\Documents\TextStore.cs (5)
724(XmlLanguage)UiScope.GetValue(FrameworkContentElement.LanguageProperty), 744(XmlLanguage)position.GetValue(FrameworkContentElement.LanguageProperty), 2626private static string GetFontFamilyName(FontFamily fontFamily, XmlLanguage language) 2641foreach (XmlLanguage matchingLanguage in language.MatchingLanguages) 2658private void PrepareAttributes(InputScope inputScope, double fontSize, FontFamily fontFamily, XmlLanguage language, Visual visual, int count, Guid[] filterAttributes)
src\Framework\System\Windows\FrameworkContentElement.cs (3)
884XmlLanguage.GetLanguage("en-US"), 892public XmlLanguage Language 894get { return (XmlLanguage) GetValue(LanguageProperty); }
src\Framework\System\Windows\FrameworkElement.cs (4)
3191typeof(XmlLanguage), 3194XmlLanguage.GetLanguage("en-US"), 3201public XmlLanguage Language 3203get { return (XmlLanguage) GetValue(LanguageProperty); }
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
848case 756: t = () => typeof(XmlLanguage); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11486typeof(System.Windows.Markup.XmlLanguage),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6300case KnownElements.XmlLanguage: t = typeof(System.Windows.Markup.XmlLanguage); break;