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

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