Beispiel #1
0
        public string GetResourceName()
        {
            var source = ResourceDictionary.GetResourceSource(this);

            return(source?.ResourceKey.Key ?? "");
        }
Beispiel #2
0
        public ResourceDictionary?GetContainingResourceDictionary()
        {
            var source = ResourceDictionary.GetResourceSource(this);

            return(source?.ContainingDictionary);
        }
Beispiel #3
0
        public string GetResourceName()
        {
            var source = ResourceDictionary.GetResourceSource(this);

            return(source?.ResourceKey.Key ?? "No associated key found. Make sure you uncommented '//#define DEBUG_SET_RESOURCE_SOURCE' in ResourceDictionary.cs");
        }