1 instantiation of XmlLanguage
PresentationCore (1)
System\Windows\Markup\XmlLanguage.cs (1)
140_cache[lowercase] = language = new XmlLanguage(lowercase);
210 references to XmlLanguage
PresentationCore (123)
MS\Internal\FontCache\FamilyCollection.cs (1)
447foreach (KeyValuePair<XmlLanguage, string> localizedFamilyName in compositeFamily.FamilyNames)
MS\Internal\FontCache\FontCacheUtil.cs (4)
903internal LocalizedName(XmlLanguage language, string name) : this(language, name, language.GetEquivalentCulture().LCID) 906internal LocalizedName(XmlLanguage language, string name, int originalLCID) 913internal XmlLanguage Language 977private XmlLanguage _language; // the language identifier
MS\Internal\FontFace\CompositeFontInfo.cs (10)
37private Dictionary<XmlLanguage, ushort[]> _familyMapRangesByLanguage; 49_familyNames = new LanguageSpecificStringDictionary(new Dictionary<XmlLanguage,string>(InitialCultureCount)); 70_familyMapRangesByLanguage = new Dictionary<XmlLanguage, ushort[]>(InitialCultureCount); 161Dictionary<XmlLanguage, ushort[]> table = new Dictionary<XmlLanguage, ushort[]>(_familyMapRangesByLanguage.Count); 162foreach (XmlLanguage language in _familyMapRangesByLanguage.Keys) 174internal ushort[] GetFamilyMapsOfLanguage(XmlLanguage language) 181foreach (XmlLanguage matchingLanguage in language.MatchingLanguages) 246private ushort[] CreateFamilyMapRanges(XmlLanguage language) 364internal ICollection<XmlLanguage> FamilyMapLanguages
MS\Internal\FontFace\CompositeFontParser.cs (3)
105private XmlLanguage GetAttributeAsXmlLanguage() 125return (XmlLanguage)value; 525XmlLanguage language = null;
MS\Internal\FontFace\FontDifferentiator.cs (4)
26internal static IDictionary<XmlLanguage, string> ConstructFaceNamesByStyleWeightStretch( 34Dictionary<XmlLanguage, string> faceNames = new Dictionary<XmlLanguage, string>(1); 35faceNames.Add(XmlLanguage.GetLanguage("en-us"), faceName);
MS\Internal\FontFace\IFontFamily.cs (1)
29IDictionary<XmlLanguage, string> Names
MS\Internal\FontFace\ITypefaceMetrics.cs (1)
77IDictionary<XmlLanguage, string> AdjustedFaceNames { get; }
MS\Internal\FontFace\PhysicalFontFamily.cs (7)
36private IDictionary<XmlLanguage, string> _familyNames; 49private static IDictionary<XmlLanguage, string> ConvertDictionary(IDictionary<CultureInfo, string> dictionary) 51Dictionary<XmlLanguage, string> convertedDictionary = new Dictionary<XmlLanguage, string>(); 57XmlLanguage language = XmlLanguage.GetLanguage(pair.Key.Name); 100IDictionary<XmlLanguage,string> IFontFamily.Names
MS\Internal\Shaping\CompositeFontFamily.cs (2)
103IDictionary<XmlLanguage, string> IFontFamily.Names 300ushort[] familyMaps = _fontInfo.GetFamilyMapsOfLanguage(XmlLanguage.GetLanguage(culture.IetfLanguageTag));
MS\Internal\Shaping\CompositeTypefaceMetrics.cs (1)
189public IDictionary<XmlLanguage, string> AdjustedFaceNames
MS\Internal\TextFormatting\TextShapeableCharacters.cs (1)
182XmlLanguage.GetLanguage(CultureMapper.GetSpecificCulture(_properties.CultureInfo).IetfLanguageTag),
System\Windows\Markup\XmlLanguage.cs (24)
57private static XmlLanguage _empty = null; 88public static XmlLanguage Empty 118public static XmlLanguage GetLanguage(string ietfLanguageTag) 120XmlLanguage language; 126language = (XmlLanguage) _cache[lowercase]; 137language = (XmlLanguage) _cache[lowercase]; 321internal bool RangeIncludes(XmlLanguage language) 467internal struct MatchingLanguageCollection : IEnumerable<XmlLanguage>, IEnumerable 469private XmlLanguage _start; 470public MatchingLanguageCollection(XmlLanguage start) 483IEnumerator<XmlLanguage> IEnumerable<XmlLanguage>.GetEnumerator() 495internal struct MatchingLanguageEnumerator : IEnumerator<XmlLanguage>, IEnumerator 497private readonly XmlLanguage _start; 498private XmlLanguage _current; 503public MatchingLanguageEnumerator(XmlLanguage start) 509_maxCultureDepth = XmlLanguage.MaxCultureDepth; 517_maxCultureDepth = XmlLanguage.MaxCultureDepth; 520public XmlLanguage Current 552XmlLanguage prefixLanguage = _current.PrefixLanguage; 576XmlLanguage parentLanguage = XmlLanguage.GetLanguage(culture.IetfLanguageTag); 660private XmlLanguage PrefixLanguage 667return XmlLanguage.GetLanguage(prefix); // throws on null
System\Windows\Markup\XmlLanguageConverter.cs (4)
88return XmlLanguage.GetLanguage(ietfLanguageTag); 118XmlLanguage xmlLanguage = value as XmlLanguage; 127MethodInfo method = typeof(XmlLanguage).GetMethod(
System\Windows\Media\CultureSpecificStringDictionary.cs (38)
28public sealed class LanguageSpecificStringDictionary : IDictionary<XmlLanguage, string>, SC.IDictionary 30private IDictionary<XmlLanguage, string> _innerDictionary; 35internal LanguageSpecificStringDictionary(IDictionary<XmlLanguage, string> innerDictionary) 46public IEnumerator<KeyValuePair<XmlLanguage, string>> GetEnumerator() 66public bool TryGetValue(XmlLanguage key, out string value) 95public void Add(KeyValuePair<XmlLanguage, string> item) 112public bool Contains(KeyValuePair<XmlLanguage, string> item) 121public void CopyTo(KeyValuePair<XmlLanguage, string>[] array, int index) 140public bool Remove(KeyValuePair<XmlLanguage, string> item) 171foreach (KeyValuePair<XmlLanguage, string> item in _innerDictionary) 187foreach (KeyValuePair<XmlLanguage, string> item in _innerDictionary) 201public void Add(XmlLanguage key, string value) 209public bool ContainsKey(XmlLanguage key) 217public bool Remove(XmlLanguage key) 225public string this[XmlLanguage key] 235public ICollection<XmlLanguage> Keys 258XmlLanguage language = TryConvertKey(key); 294XmlLanguage language = TryConvertKey(key); 303XmlLanguage language = TryConvertKey(key); 333private XmlLanguage ConvertKey(object key) 335XmlLanguage language = TryConvertKey(key); 340throw new ArgumentException(SR.Format(SR.CannotConvertType, key.GetType(), typeof(XmlLanguage)), "key"); 346private XmlLanguage TryConvertKey(object key) 348XmlLanguage language = key as XmlLanguage; 354return XmlLanguage.GetLanguage(name); 366protected IDictionary<XmlLanguage, string> _innerDictionary; 367protected IEnumerator<KeyValuePair<XmlLanguage, string>> _enumerator; 369internal EntryEnumerator(IDictionary<XmlLanguage, string> names) 399private KeyValuePair<XmlLanguage, string> GetCurrentEntry() 402KeyValuePair<XmlLanguage, string> entry = _enumerator.Current; 417KeyValuePair<XmlLanguage, string> entry = GetCurrentEntry(); 444protected IDictionary<XmlLanguage, string> _innerDictionary; 446internal BaseCollection(IDictionary<XmlLanguage, string> names) 484internal KeyCollection(IDictionary<XmlLanguage, string> names) : base(names) 498internal KeyEnumerator(IDictionary<XmlLanguage, string> names) : base(names) 517internal ValueCollection(IDictionary<XmlLanguage, string> names) 532internal ValueEnumerator(IDictionary<XmlLanguage, string> names) : base(names)
System\Windows\Media\FamilyMap.cs (7)
38private XmlLanguage _language; 78XmlLanguage language, 166public XmlLanguage Language 175_language = (value == XmlLanguage.Empty) ? null : value; 201internal static bool MatchLanguage(XmlLanguage familyMapLanguage, XmlLanguage language) 217internal static bool MatchCulture(XmlLanguage familyMapLanguage, CultureInfo culture)
System\Windows\Media\FamilyTypeface.cs (1)
210public IDictionary<XmlLanguage, string> AdjustedFaceNames
System\Windows\Media\FontFamilyConverter.cs (3)
182if (culture != null && names.TryGetValue(XmlLanguage.GetLanguage(culture.IetfLanguageTag), out name)) 187else if (parentCulture != null && names.TryGetValue(XmlLanguage.GetLanguage(parentCulture.IetfLanguageTag), out name)) 192else if (names.TryGetValue(XmlLanguage.Empty, out name))
System\Windows\Media\GlyphRun.cs (6)
141XmlLanguage language 236XmlLanguage language 294XmlLanguage language, 345XmlLanguage language, 1175public XmlLanguage Language 2491private XmlLanguage _language;
System\Windows\Media\GlyphTypeface.cs (5)
389IDictionary<XmlLanguage, string> ITypefaceMetrics.AdjustedFaceNames 396IDictionary<XmlLanguage, string> adjustedLanguageFaceNames = new Dictionary<XmlLanguage, string>(adjustedFaceNames.Count); 400adjustedLanguageFaceNames[XmlLanguage.GetLanguage(pair.Key.IetfLanguageTag)] = pair.Value; 1427XmlLanguage.GetLanguage(cultureInfo.IetfLanguageTag),
PresentationFramework (57)
MS\Internal\Documents\DocumentViewerHelper.cs (2)
248XmlLanguage language = (XmlLanguage)textContainer.Parent.GetValue(FrameworkElement.LanguageProperty);
MS\Internal\FrameworkObject.cs (1)
186internal XmlLanguage Language
MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (2)
195XmlLanguage lang = XmlLanguage.GetLanguage(languageString);
MS\Internal\Text\DynamicPropertyReader.cs (2)
308XmlLanguage language = (XmlLanguage) element.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Controls\ContentPresenter.cs (3)
973private void CacheLanguage(XmlLanguage language) 1096XmlLanguage language = container.Language; 1205private XmlLanguage _language;
System\Windows\Controls\TextRangeAdaptor.cs (4)
153return (val is XmlLanguage) ? ((XmlLanguage)val).GetEquivalentCulture().LCID : CultureInfo.InvariantCulture.LCID; 1278XmlLanguage textLanguage = (context != null) ? 1279(XmlLanguage)context.GetValue(FrameworkElement.LanguageProperty) :
System\Windows\Controls\TextSearch.cs (2)
821XmlLanguage language = (XmlLanguage) o;
System\Windows\Data\BindingExpressionBase.cs (1)
1293_culture = ((XmlLanguage) target.GetValue(FrameworkElement.LanguageProperty)).GetSpecificCulture();
System\Windows\Data\BindingGroup.cs (1)
1317_culture = ((System.Windows.Markup.XmlLanguage) mentor.GetValue(FrameworkElement.LanguageProperty)).GetSpecificCulture();
System\Windows\Data\CollectionViewSource.cs (2)
830XmlLanguage language = (d != null) ? (XmlLanguage)d.GetValue(FrameworkElement.LanguageProperty) : null;
System\Windows\Documents\FixedDSBuilder.cs (2)
166XmlLanguage language = (XmlLanguage) _fixedPage.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Documents\FixedSOMPage.cs (1)
95element.SetValue(FrameworkContentElement.LanguageProperty, XmlLanguage.GetLanguage(_cultureInfo.IetfLanguageTag));
System\Windows\Documents\FixedSOMTextRun.cs (1)
233element.SetValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(_cultureInfo.IetfLanguageTag));
System\Windows\Documents\Glyphs.cs (1)
1067public GlyphRun CreateGlyphRun(Point origin, XmlLanguage language)
System\Windows\Documents\Speller.cs (12)
190CultureInfo culture = GetCurrentCultureAndLanguage(error.Start, out XmlLanguage language); 669XmlLanguage language = GetCurrentLanguage(start); 710XmlLanguage language = GetCurrentLanguage(caretPosition); 785XmlLanguage language; 1089private void ExpandToWordBreakAndContext(ITextPointer position, LogicalDirection direction, XmlLanguage language, 1319private ITextPointer SearchForWordBreaks(ITextPointer position, LogicalDirection direction, XmlLanguage language, int minWordCount, bool stopOnError) 1391private ITextPointer GetNextLanguageTransition(ITextPointer position, LogicalDirection direction, XmlLanguage language, ITextPointer haltPosition) 1488private XmlLanguage GetCurrentLanguage(ITextPointer position) 1490XmlLanguage language; 1499private CultureInfo GetCurrentCultureAndLanguage(ITextPointer position, out XmlLanguage language) 1509language = XmlLanguage.GetLanguage(cultureInfo.IetfLanguageTag); 1513language = (XmlLanguage)position.GetValue(FrameworkElement.LanguageProperty);
System\windows\Documents\TextEditor.cs (3)
482XmlLanguage language = (XmlLanguage)((ITextPointer)range.Start).GetValue(FrameworkElement.LanguageProperty); 490range.ApplyPropertyValue(FrameworkElement.LanguageProperty, XmlLanguage.GetLanguage(inputCultureInfo.IetfLanguageTag));
System\windows\Documents\TextEditorSpelling.cs (2)
164XmlLanguage language = (XmlLanguage)spellingError.Start.GetValue(FrameworkElement.LanguageProperty);
System\Windows\Documents\TextStore.cs (5)
861(XmlLanguage)UiScope.GetValue(FrameworkContentElement.LanguageProperty), 881(XmlLanguage)position.GetValue(FrameworkContentElement.LanguageProperty), 2747private static string GetFontFamilyName(FontFamily fontFamily, XmlLanguage language) 2762foreach (XmlLanguage matchingLanguage in language.MatchingLanguages) 2774private void PrepareAttributes(InputScope inputScope, double fontSize, FontFamily fontFamily, XmlLanguage language, Visual visual, int count, Guid[] filterAttributes)
System\Windows\FrameworkContentElement.cs (3)
878XmlLanguage.GetLanguage("en-US"), 886public XmlLanguage Language 888get { return (XmlLanguage) GetValue(LanguageProperty); }
System\Windows\FrameworkElement.cs (4)
3192typeof(XmlLanguage), 3195XmlLanguage.GetLanguage("en-US"), 3202public XmlLanguage Language 3204get { return (XmlLanguage) GetValue(LanguageProperty); }
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
852case 756: t = () => typeof(XmlLanguage); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11490typeof(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)
358XmlLanguage language = XmlLanguage.GetLanguage(Culture.Name);
Serialization\Manager\MetroSerializationManager.cs (2)
398XmlLanguage 441XmlLanguage _language;
Serialization\Manager\ReachFixedPageSerializer.cs (2)
175XmlLanguage language = fixedPage.Language; 179language = XmlLanguage.GetLanguage(XpsS0Markup.XmlLangValue);
Serialization\Manager\ReachFixedPageSerializerAsync.cs (2)
200XmlLanguage language = fixedPage.Language; 204language = XmlLanguage.GetLanguage(XpsS0Markup.XmlLangValue);
Serialization\Manager\ReachIDocumentPaginatorSerializer.cs (3)
116XmlLanguage language = null; 121language = (XmlLanguage)dependencyObject.GetValue(FrameworkContentElement.LanguageProperty); 127language = XmlLanguage.GetLanguage(XpsS0Markup.XmlLangValue);
Serialization\Manager\ReachIDocumentPaginatorSerializerAsync.cs (3)
156XmlLanguage language = null; 161language = (XmlLanguage)dependencyObject.GetValue(FrameworkContentElement.LanguageProperty); 167language = XmlLanguage.GetLanguage(XpsS0Markup.XmlLangValue);
Serialization\Manager\XpsOMDocumentPaginatorSerializer.cs (3)
135XmlLanguage language = null; 140language = (XmlLanguage)dependencyObject.GetValue(FrameworkContentElement.LanguageProperty); 146language = XmlLanguage.GetLanguage(XpsS0Markup.XmlLangValue);
Serialization\Manager\XpsOMFixedPageSerializer.cs (2)
165XmlLanguage language = fixedPage.Language; 169language = XmlLanguage.GetLanguage(XpsS0Markup.XmlLangValue);
Serialization\VisualSerializer.cs (1)
2188if (glyphRun.Language == XmlLanguage.Empty)
System.Windows.Controls.Ribbon (10)
Microsoft\Windows\Controls\KeyTipService.cs (6)
911XmlLanguage language = (XmlLanguage)element.GetValue(FrameworkElement.LanguageProperty); 912if (language != null && language != XmlLanguage.Empty) 914Dictionary<XmlLanguage, CultureInfo> cultureCache = Current._cultureCache; 927Current._cultureCache = cultureCache = new Dictionary<XmlLanguage, CultureInfo>(); 1760private Dictionary<XmlLanguage, CultureInfo> _cultureCache = null; // cache of culture infos.
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
2550XmlLanguage language = (XmlLanguage)element.GetValue(FrameworkElement.LanguageProperty);
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
867XmlLanguage language = (XmlLanguage) o;