protected override void Init(string regionName, out IContentPresenterWrapper <ContentControl> target) { ContentControl control = new ContentControl(); UIRegion.SetRegion(control, regionName); target = new ContentControlWrapper() { Target = control }; }
protected override void Init(out IViewInjectionService service, out IContentPresenterWrapper <ContentControl> target) { ContentControl control = new ContentControl(); var s = new ViewInjectionService(); Interaction.GetBehaviors(control).Add(s); target = new ContentControlWrapper() { Target = control }; service = s; }