Ejemplo n.º 1
0
        public ContentRegionAdapter(ContentControl regionTarget, ICreateView viewFactory)
            : base(regionTarget)
        {
            if (viewFactory == null)
                throw new ArgumentNullException("viewFactory", "viewFactory is null.");

            _viewFactory = viewFactory;
        }
        private IDictionary <ReactiveViewModel, TabItem> _viewContainer = new Dictionary <ReactiveViewModel, TabItem>(); // TODO use ConcurrentDictionary ?

        public TabRegionAdapter(ICreateView viewFactory, TabControl regionTarget)
        {
            if (viewFactory == null)
            {
                throw new ArgumentNullException("viewFactory", "viewFactory is null.");
            }
            if (regionTarget == null)
            {
                throw new ArgumentNullException("regionTarget", "regionTarget is null.");
            }

            _viewFactory  = viewFactory;
            _regionTarget = regionTarget;
        }
Ejemplo n.º 3
0
 protected virtual void AttachCreateEvents(ICreateView <T> createView)
 {
 }