Thanks for the reply. Perhaps I did'nt make my situation too clear. Allow me to clarify.
The class CornerPadDtViewModel is derived from my runtime class CornerPadViewModel which has this signature:
public CornerPadViewModel(IRegionManager regionManager, IUnityContainer container, IExtendedLogger logger)
_logger = logger;
_container = container;
The logger class is registered in Unity Container, because it resolves perfectly at runtime.
The class CornerPadDtViewModel is derived from CornerPadViewModel for design time purposes only. This allows me to instanciate the view model class so the design time values can be bound to the controls. In order to do this, I must
instanciate it in this manner:
public CornerPadDtViewModel() : base(new RegionManager(), new UnityContainer(), new ExtendedLogger())
CornerPadVm = new UserInput
SalesOrder = "XXXX1234567",
CustomerName = "012345678901234567890123456789",
QtyPerBale = 9999,
QtyCornerPadsToPrint = 4,
Paying specific attention to the base(new.. . Since Unity is not available to resolve any of the base class constructor parameters, I have to
NEW them up. This works fine, until I get to new ExtendedLogger(). I can't use the syntax
ILoggerExtended logger here because the IDE throws a warning of "Interface name is not valid at this point".
Unless there is another way of creating a design time class based on my run time class...
Thanks, if you need more code, I would be happy to provide it.