I have some reusable UserControls, inside those UserControls i want to access some service instances which i registered inside bootstrapper.
I cannot do constructor injection because those user controls are used directly inside xaml, so i tried to access ServiceLocator.Current
but it threw exception.
So what is the best practice for accessing registered service instances inside user controls which you cannot do constructor injection as WPF wants parameterless constructor to load them inside xaml.
(Btw, I am using UnityBootstrapper)