Clock.Desktop.Uwp/DataProvider.cs (20 lines of code) (raw):

namespace Clock.Desktop { using System; using Windows.UI.Xaml; using global::IoC; using IoC; internal class DataProvider { private readonly IContainer _container = (Application.Current as App)?.Container // Resolves from Design Time Container ?? Container.Create().Using<ClockDesignTimeConfiguration>(); private Type _objectType; public string ObjectType { set => _objectType = value != null ? Type.GetType(value, true) : typeof(object); } public object Tag { get; set; } public object It => _container.Resolve<object>(_objectType, Tag); } }