Пример #1
0
 static ResourceResolver()
 {
     _scopeStack = new Stack <XamlScope>();
     _scopeStack.Push(XamlScope.Create());             //There should always be a base-level scope (this will be used when no template is being resolved)
 }
Пример #2
0
 /// <summary>
 /// Push a new <see cref="XamlScope"/>, typically because a template is being materialized.
 /// </summary>
 /// <param name="scope"></param>
 internal static void PushNewScope(XamlScope scope) => _scopeStack.Push(scope);