protected override RegionAdapterMappings ConfigureRegionAdapterMappings()
        {
            RegionAdapterMappings mappings = base.ConfigureRegionAdapterMappings();
            var factory = Container.GetExportedValue <IRegionBehaviorFactory>();

            mappings.RegisterMapping(typeof(NavBarControl), AdapterFactory.Make <RegionAdapterBase <NavBarControl> >(factory));
            return(mappings);
        }
        protected override void ConfigureRegionAdapterMappings(RegionAdapterMappings regionAdapterMappings)
        {
            base.ConfigureRegionAdapterMappings(regionAdapterMappings);
            var factory = base.Container.Resolve <IRegionBehaviorFactory>();

            regionAdapterMappings.RegisterMapping(typeof(DocumentGroup), AdapterFactory.Make <RegionAdapterBase <DocumentGroup> >(factory));
            regionAdapterMappings.RegisterMapping(typeof(LayoutPanel), AdapterFactory.Make <RegionAdapterBase <LayoutPanel> >(factory));
            regionAdapterMappings.RegisterMapping(typeof(LayoutGroup), AdapterFactory.Make <RegionAdapterBase <LayoutGroup> >(factory));
            regionAdapterMappings.RegisterMapping(typeof(TabbedGroup), AdapterFactory.Make <RegionAdapterBase <TabbedGroup> >(factory));
        }
        protected override RegionAdapterMappings ConfigureRegionAdapterMappings()
        {
            RegionAdapterMappings mappings = base.ConfigureRegionAdapterMappings();
            var factory = Container.GetExportedValue <IRegionBehaviorFactory>();

            mappings.RegisterMapping(typeof(LayoutPanel), AdapterFactory.Make <RegionAdapterBase <LayoutPanel> >(factory));
            mappings.RegisterMapping(typeof(LayoutGroup), AdapterFactory.Make <RegionAdapterBase <LayoutGroup> >(factory));
            mappings.RegisterMapping(typeof(TabbedGroup), AdapterFactory.Make <RegionAdapterBase <TabbedGroup> >(factory));
            mappings.RegisterMapping(typeof(DocumentGroup), AdapterFactory.Make <RegionAdapterBase <DocumentGroup> >(factory));
            return(mappings);
        }
Exemple #4
0
        protected override RegionAdapterMappings ConfigureRegionAdapterMappings()
        {
            RegionAdapterMappings mappings = base.ConfigureRegionAdapterMappings();

            if (mappings != null)
            {
                var factory = ServiceLocator.Current.GetInstance <IRegionBehaviorFactory>();
                mappings.RegisterMapping(typeof(LayoutPanel), AdapterFactory.Make <RegionAdapterBase <LayoutPanel> >(factory));
            }
            return(mappings);
        }