BaconographyW8.Common.TypedTemplateSelector.GetCachedDataTemplate C# (CSharp) Method

GetCachedDataTemplate() private method

private GetCachedDataTemplate ( string key ) : DataTemplate
key string
return Windows.UI.Xaml.DataTemplate
        private DataTemplate GetCachedDataTemplate(string key)
        {
            if (!IsCacheEnabled) { return null; }
            VerifyCachedDataTemplateStorage();
            if (_cachedDataTemplates.ContainsKey(key))
            {
                return _cachedDataTemplates[key];
            }

            return null;
        }