Example #1
0
        public static IDisposable EnterScope()
        {
            var d = new ResolverDisposable(Current, CurrentMutable);

            Current = CurrentMutable = new AvaloniaLocator(Current);
            return(d);
        }
Example #2
0
 static AvaloniaLocator()
 {
     Current = CurrentMutable = new AvaloniaLocator();
 }
Example #3
0
 public ResolverDisposable(IAvaloniaDependencyResolver resolver, IAvaloniaLocator mutable)
 {
     _resolver = resolver;
     _mutable  = mutable;
 }