1 instantiation of XmlLanguage
PresentationCore (1)
System\Windows\Markup\XmlLanguage.cs (1)
136_cache[lowercase] = language = new XmlLanguage(lowercase);
210 references to XmlLanguage
PresentationCore (123)
MS\Internal\FontCache\FamilyCollection.cs (1)
437foreach (KeyValuePair<XmlLanguage, string> localizedFamilyName in compositeFamily.FamilyNames)
MS\Internal\FontCache\FontCacheUtil.cs (4)
887internal LocalizedName(XmlLanguage language, string name) : this(language, name, language.GetEquivalentCulture().LCID) 890internal LocalizedName(XmlLanguage language, string name, int originalLCID) 897internal XmlLanguage Language 961private XmlLanguage _language; // the language identifier
MS\Internal\FontFace\CompositeFontInfo.cs (10)
23private Dictionary<XmlLanguage, ushort[]> _familyMapRangesByLanguage; 35_familyNames = new LanguageSpecificStringDictionary(new Dictionary<XmlLanguage,string>(InitialCultureCount)); 56_familyMapRangesByLanguage = new Dictionary<XmlLanguage, ushort[]>(InitialCultureCount); 147Dictionary<XmlLanguage, ushort[]> table = new Dictionary<XmlLanguage, ushort[]>(_familyMapRangesByLanguage.Count); 148foreach (XmlLanguage language in _familyMapRangesByLanguage.Keys) 160internal ushort[] GetFamilyMapsOfLanguage(XmlLanguage language) 167foreach (XmlLanguage matchingLanguage in language.MatchingLanguages) 232private ushort[] CreateFamilyMapRanges(XmlLanguage language) 350internal ICollection<XmlLanguage> FamilyMapLanguages
MS\Internal\FontFace\CompositeFontParser.cs (3)
93private XmlLanguage GetAttributeAsXmlLanguage() 113return (XmlLanguage)value; 513XmlLanguage language = null;
MS\Internal\FontFace\FontDifferentiator.cs (4)
24internal static IDictionary<XmlLanguage, string> ConstructFaceNamesByStyleWeightStretch( 32Dictionary<XmlLanguage, string> faceNames = new Dictionary<XmlLanguage, string>(1); 33faceNames.Add(XmlLanguage.GetLanguage("en-us"), faceName);
MS\Internal\FontFace\IFontFamily.cs (1)
25IDictionary<XmlLanguage, string> Names
MS\Internal\FontFace\ITypefaceMetrics.cs (1)
73IDictionary<XmlLanguage, string> AdjustedFaceNames { get; }
MS\Internal\FontFace\PhysicalFontFamily.cs (7)
27private IDictionary<XmlLanguage, string> _familyNames; 40private static IDictionary<XmlLanguage, string> ConvertDictionary(IDictionary<CultureInfo, string> dictionary) 42Dictionary<XmlLanguage, string> convertedDictionary = new Dictionary<XmlLanguage, string>(); 48XmlLanguage language = XmlLanguage.GetLanguage(pair.Key.Name); 91IDictionary<XmlLanguage,string> IFontFamily.Names
MS\Internal\Shaping\CompositeFontFamily.cs (2)
95IDictionary<XmlLanguage, string> IFontFamily.Names 292ushort[] familyMaps = _fontInfo.GetFamilyMapsOfLanguage(XmlLanguage.GetLanguage(culture.IetfLanguageTag));
MS\Internal\Shaping\CompositeTypefaceMetrics.cs (1)
185public IDictionary<XmlLanguage, string> AdjustedFaceNames
MS\Internal\TextFormatting\TextShapeableCharacters.cs (1)
174XmlLanguage.GetLanguage(CultureMapper.GetSpecificCulture(_properties.CultureInfo).IetfLanguageTag),
System\Windows\Markup\XmlLanguage.cs (24)
53private static XmlLanguage _empty = null; 84public static XmlLanguage Empty 114public static XmlLanguage GetLanguage(string ietfLanguageTag) 116XmlLanguage language; 122language = (XmlLanguage) _cache[lowercase]; 133language = (XmlLanguage) _cache[lowercase]; 315internal bool RangeIncludes(XmlLanguage language) 461internal struct MatchingLanguageCollection : IEnumerable<XmlLanguage>, IEnumerable 463private XmlLanguage _start; 464public MatchingLanguageCollection(XmlLanguage start) 477IEnumerator<XmlLanguage> IEnumerable<XmlLanguage>.GetEnumerator() 489internal struct MatchingLanguageEnumerator : IEnumerator<XmlLanguage>, IEnumerator 491private readonly XmlLanguage _start; 492private XmlLanguage _current; 497public MatchingLanguageEnumerator(XmlLanguage start) 503_maxCultureDepth = XmlLanguage.MaxCultureDepth; 511_maxCultureDepth = XmlLanguage.MaxCultureDepth; 514public XmlLanguage Current 546XmlLanguage prefixLanguage = _current.PrefixLanguage; 570XmlLanguage parentLanguage = XmlLanguage.GetLanguage(culture.IetfLanguageTag); 654private XmlLanguage PrefixLanguage 661return XmlLanguage.GetLanguage(prefix); // throws on null
System\Windows\Markup\XmlLanguageConverter.cs (4)
85return XmlLanguage.GetLanguage(ietfLanguageTag); 115XmlLanguage xmlLanguage = value as XmlLanguage; 124MethodInfo method = typeof(XmlLanguage).GetMethod(
System\Windows\Media\CultureSpecificStringDictionary.cs (38)
14public sealed class LanguageSpecificStringDictionary : IDictionary<XmlLanguage, string>, SC.IDictionary 16private IDictionary<XmlLanguage, string> _innerDictionary; 21internal LanguageSpecificStringDictionary(IDictionary<XmlLanguage, string> innerDictionary) 32public IEnumerator<KeyValuePair<XmlLanguage, string>> GetEnumerator() 52public bool TryGetValue(XmlLanguage key, out string value) 81public void Add(KeyValuePair<XmlLanguage, string> item) 98public bool Contains(KeyValuePair<XmlLanguage, string> item) 107public void CopyTo(KeyValuePair<XmlLanguage, string>[] array, int index) 126public bool Remove(KeyValuePair<XmlLanguage, string> item) 157foreach (KeyValuePair<XmlLanguage, string> item in _innerDictionary) 173foreach (KeyValuePair<XmlLanguage, string> item in _innerDictionary) 187public void Add(XmlLanguage key, string value) 195public bool ContainsKey(XmlLanguage key) 203public bool Remove(XmlLanguage key) 211public string this[XmlLanguage key] 221public ICollection<XmlLanguage> Keys 244XmlLanguage language = TryConvertKey(key); 280XmlLanguage language = TryConvertKey(key); 289XmlLanguage language = TryConvertKey(key); 319private XmlLanguage ConvertKey(object key) 321XmlLanguage language = TryConvertKey(key); 326throw new ArgumentException(SR.Format(SR.CannotConvertType, key.GetType(), typeof(XmlLanguage)), "key"); 332private XmlLanguage TryConvertKey(object key) 334XmlLanguage language = key as XmlLanguage; 340return XmlLanguage.GetLanguage(name); 352protected IDictionary<XmlLanguage, string> _innerDictionary; 353protected IEnumerator<KeyValuePair<XmlLanguage, string>> _enumerator; 355internal EntryEnumerator(IDictionary<XmlLanguage, string> names) 385private KeyValuePair<XmlLanguage, string> GetCurrentEntry() 388KeyValuePair<XmlLanguage, string> entry = _enumerator.Current; 403KeyValuePair<XmlLanguage, string> entry = GetCurrentEntry(); 430protected IDictionary<XmlLanguage, string> _innerDictionary; 432internal BaseCollection(IDictionary<XmlLanguage, string> names) 470internal KeyCollection(IDictionary<XmlLanguage, string> names) : base(names) 484internal KeyEnumerator(IDictionary<XmlLanguage, string> names) : base(names) 503internal ValueCollection(IDictionary<XmlLanguage, string> names) 518internal ValueEnumerator(IDictionary<XmlLanguage, string> names) : base(names)
System\Windows\Media\FamilyMap.cs (7)
20private XmlLanguage _language; 60XmlLanguage language, 148public XmlLanguage Language 157_language = (value == XmlLanguage.Empty) ? null : value; 183internal static bool MatchLanguage(XmlLanguage familyMapLanguage, XmlLanguage language) 199internal static bool MatchCulture(XmlLanguage familyMapLanguage, CultureInfo culture)
System\Windows\Media\FamilyTypeface.cs (1)
194public IDictionary<XmlLanguage, string> AdjustedFaceNames
System\Windows\Media\FontFamilyConverter.cs (3)
167if (culture != null && names.TryGetValue(XmlLanguage.GetLanguage(culture.IetfLanguageTag), out name)) 172else if (parentCulture != null && names.TryGetValue(XmlLanguage.GetLanguage(parentCulture.IetfLanguageTag), out name)) 177else if (names.TryGetValue(XmlLanguage.Empty, out name))
System\Windows\Media\GlyphRun.cs (6)
128XmlLanguage language 223XmlLanguage language 281XmlLanguage language, 332XmlLanguage language, 1162public XmlLanguage Language 2478private XmlLanguage _language;
System\Windows\Media\GlyphTypeface.cs (5)
380IDictionary<XmlLanguage, string> ITypefaceMetrics.AdjustedFaceNames 387IDictionary<XmlLanguage, string> adjustedLanguageFaceNames = new Dictionary<XmlLanguage, string>(adjustedFaceNames.Count); 391adjustedLanguageFaceNames[XmlLanguage.GetLanguage(pair.Key.IetfLanguageTag)] = pair.Value; 1418XmlLanguage.GetLanguage(cultureInfo.IetfLanguageTag),
PresentationFramework (57)
MS\Internal\Documents\DocumentViewerHelper.cs (2)
246XmlLanguage language = (XmlLanguage)textContainer.Parent.GetValue(FrameworkElement.LanguageProperty);
MS\Internal\FrameworkObject.cs (1)
183internal XmlLanguage Language
MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (2)
193XmlLanguage lang = XmlLanguage.GetLanguage(languageString);
MS\Internal\Text\DynamicPropertyReader.cs (2)
302XmlLanguage language = (XmlLanguage) element.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Controls\ContentPresenter.cs (3)
964private void CacheLanguage(XmlLanguage language) 1087XmlLanguage language = container.Language; 1196private XmlLanguage _language;
System\Windows\Controls\TextRangeAdaptor.cs (4)
151return (val is XmlLanguage) ? ((XmlLanguage)val).GetEquivalentCulture().LCID : CultureInfo.InvariantCulture.LCID; 1276XmlLanguage textLanguage = (context != null) ? 1277(XmlLanguage)context.GetValue(FrameworkElement.LanguageProperty) :
System\Windows\Controls\TextSearch.cs (2)
809XmlLanguage language = (XmlLanguage) o;
System\Windows\Data\BindingExpressionBase.cs (1)
1285_culture = ((XmlLanguage) target.GetValue(FrameworkElement.LanguageProperty)).GetSpecificCulture();
System\Windows\Data\BindingGroup.cs (1)
1312_culture = ((System.Windows.Markup.XmlLanguage) mentor.GetValue(FrameworkElement.LanguageProperty)).GetSpecificCulture();
System\Windows\Data\CollectionViewSource.cs (2)
829XmlLanguage language = (d != null) ? (XmlLanguage)d.GetValue(FrameworkElement.LanguageProperty) : null;
System\Windows\Documents\FixedDSBuilder.cs (2)
158XmlLanguage language = (XmlLanguage) _fixedPage.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Documents\FixedSOMPage.cs (1)
92element.SetValue(FrameworkContentElement.LanguageProperty, XmlLanguage.GetLanguage(_cultureInfo.IetfLanguageTag));
System\Windows\Documents\FixedSOMTextRun.cs (1)
229element.SetValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(_cultureInfo.IetfLanguageTag));
System\Windows\Documents\Glyphs.cs (1)
1054public GlyphRun CreateGlyphRun(Point origin, XmlLanguage language)
System\Windows\Documents\Speller.cs (12)
186CultureInfo culture = GetCurrentCultureAndLanguage(error.Start, out XmlLanguage language); 665XmlLanguage language = GetCurrentLanguage(start); 706XmlLanguage language = GetCurrentLanguage(caretPosition); 781XmlLanguage language; 1085private void ExpandToWordBreakAndContext(ITextPointer position, LogicalDirection direction, XmlLanguage language, 1315private ITextPointer SearchForWordBreaks(ITextPointer position, LogicalDirection direction, XmlLanguage language, int minWordCount, bool stopOnError) 1387private ITextPointer GetNextLanguageTransition(ITextPointer position, LogicalDirection direction, XmlLanguage language, ITextPointer haltPosition) 1484private XmlLanguage GetCurrentLanguage(ITextPointer position) 1486XmlLanguage language; 1495private CultureInfo GetCurrentCultureAndLanguage(ITextPointer position, out XmlLanguage language) 1505language = XmlLanguage.GetLanguage(cultureInfo.IetfLanguageTag); 1509language = (XmlLanguage)position.GetValue(FrameworkElement.LanguageProperty);
System\windows\Documents\TextEditor.cs (3)
476XmlLanguage language = (XmlLanguage)((ITextPointer)range.Start).GetValue(FrameworkElement.LanguageProperty); 484range.ApplyPropertyValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(inputCultureInfo.IetfLanguageTag));
System\windows\Documents\TextEditorSpelling.cs (2)
163XmlLanguage language = (XmlLanguage)spellingError.Start.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Documents\TextStore.cs (5)
850(XmlLanguage)UiScope.GetValue(FrameworkContentElement.LanguageProperty), 870(XmlLanguage)position.GetValue(FrameworkContentElement.LanguageProperty), 2736private static string GetFontFamilyName(FontFamily fontFamily, XmlLanguage language) 2751foreach (XmlLanguage matchingLanguage in language.MatchingLanguages) 2763private void PrepareAttributes(InputScope inputScope, double fontSize, FontFamily fontFamily, XmlLanguage language, Visual visual, int count, Guid[] filterAttributes)
System\Windows\FrameworkContentElement.cs (3)
866XmlLanguage.GetLanguage("en-US"), 874public XmlLanguage Language 876get { return (XmlLanguage) GetValue(LanguageProperty); }
System\Windows\FrameworkElement.cs (4)
3181typeof(XmlLanguage), 3184XmlLanguage.GetLanguage("en-US"), 3191public XmlLanguage Language 3193get { return (XmlLanguage) GetValue(LanguageProperty); }
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
850case 756: t = () => typeof(XmlLanguage); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11488typeof(System.Windows.Markup.XmlLanguage),
System\Windows\Markup\KnownTypes.cs (1)
6310case KnownElements.XmlLanguage: t = typeof(System.Windows.Markup.XmlLanguage); break;
ReachFramework (20)
Packaging\XPSSignatureDefinition.cs (2)
352XmlLanguage language = XmlLanguage.GetLanguage(Culture.Name);
Serialization\Manager\MetroSerializationManager.cs (2)
389XmlLanguage 432XmlLanguage _language;
Serialization\Manager\ReachFixedPageSerializer.cs (2)
166XmlLanguage language = fixedPage.Language; 170language = XmlLanguage.GetLanguage(XpsS0Markup.XmlLangValue);
Serialization\Manager\ReachFixedPageSerializerAsync.cs (2)
191XmlLanguage language = fixedPage.Language; 195language = XmlLanguage.GetLanguage(XpsS0Markup.XmlLangValue);
Serialization\Manager\ReachIDocumentPaginatorSerializer.cs (3)
105XmlLanguage language = null; 110language = (XmlLanguage)dependencyObject.GetValue(FrameworkContentElement.LanguageProperty); 116language = XmlLanguage.GetLanguage(XpsS0Markup.XmlLangValue);
Serialization\Manager\ReachIDocumentPaginatorSerializerAsync.cs (3)
145XmlLanguage language = null; 150language = (XmlLanguage)dependencyObject.GetValue(FrameworkContentElement.LanguageProperty); 156language = XmlLanguage.GetLanguage(XpsS0Markup.XmlLangValue);
Serialization\Manager\XpsOMDocumentPaginatorSerializer.cs (3)
123XmlLanguage language = null; 128language = (XmlLanguage)dependencyObject.GetValue(FrameworkContentElement.LanguageProperty); 134language = XmlLanguage.GetLanguage(XpsS0Markup.XmlLangValue);
Serialization\Manager\XpsOMFixedPageSerializer.cs (2)
156XmlLanguage language = fixedPage.Language; 160language = XmlLanguage.GetLanguage(XpsS0Markup.XmlLangValue);
Serialization\VisualSerializer.cs (1)
2180if (glyphRun.Language == XmlLanguage.Empty)
System.Windows.Controls.Ribbon (10)
Microsoft\Windows\Controls\KeyTipService.cs (6)
909XmlLanguage language = (XmlLanguage)element.GetValue(FrameworkElement.LanguageProperty); 910if (language != null && language != XmlLanguage.Empty) 912Dictionary<XmlLanguage, CultureInfo> cultureCache = Current._cultureCache; 925Current._cultureCache = cultureCache = new Dictionary<XmlLanguage, CultureInfo>(); 1758private Dictionary<XmlLanguage, CultureInfo> _cultureCache = null; // cache of culture infos.
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
2545XmlLanguage language = (XmlLanguage)element.GetValue(FrameworkElement.LanguageProperty);
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
862XmlLanguage language = (XmlLanguage) o;