protected TypedResourceItem(ResourceManager resourceManager, ResourceContainer resourceContainer, ResourceModel resource)
     : base(resourceManager, resourceContainer, resource)
 {
 }
 public BrushResourceItem(ResourceManager resourceManager, ResourceContainer resourceContainer, ResourceModel resource)
     : base(resourceManager, resourceContainer, resource)
 {
 }
Exemple #3
0
 public TimelineResourceItem(ResourceManager resourceManager, ResourceContainer resourceContainer, ResourceModel resource)
     : base(resourceManager, resourceContainer, resource)
 {
 }
 public ControlTemplateResourceItem(ResourceManager resourceManager, ResourceContainer resourceContainer, ResourceModel resource)
     : base(resourceManager, resourceContainer, resource)
 {
 }
 public TransformResourceItem(ResourceManager resourceManager, ResourceContainer resourceContainer, ResourceModel resource)
     : base(resourceManager, resourceContainer, resource)
 {
 }
Exemple #6
0
 public DrawingImageResourceItem(ResourceManager resourceManager, ResourceContainer resourceContainer, ResourceModel resource)
     : base(resourceManager, resourceContainer, resource)
 {
 }
Exemple #7
0
 public DataSourceResourceItem(ResourceManager resourceManager, ResourceContainer resourceContainer, ResourceModel resourceModel)
     : base(resourceManager, resourceContainer, resourceModel)
 {
 }
        public static ResourceItem GetTypedItem(ResourceManager resourceManager, ResourceContainer resourceContainer, ResourceModel model)
        {
            ITypeId type = (ITypeId)model.ValueNode.Type;

            if (PlatformTypes.Brush.IsAssignableFrom(type))
            {
                return((ResourceItem) new BrushResourceItem(resourceManager, resourceContainer, model));
            }
            if (PlatformTypes.DrawingImage.IsAssignableFrom(type))
            {
                return((ResourceItem) new DrawingImageResourceItem(resourceManager, resourceContainer, model));
            }
            if (PlatformTypes.Transform.IsAssignableFrom(type) || PlatformTypes.Transform3D.IsAssignableFrom(type))
            {
                return((ResourceItem) new TransformResourceItem(resourceManager, resourceContainer, model));
            }
            if (PlatformTypes.Style.IsAssignableFrom(type))
            {
                return((ResourceItem) new StyleResourceItem(resourceManager, resourceContainer, model));
            }
            if (PlatformTypes.ControlTemplate.IsAssignableFrom(type))
            {
                return((ResourceItem) new ControlTemplateResourceItem(resourceManager, resourceContainer, model));
            }
            if (PlatformTypes.DataTemplate.IsAssignableFrom(type))
            {
                return((ResourceItem) new DataTemplateResourceItem(resourceManager, resourceContainer, model));
            }
            if (PlatformTypes.ItemsPanelTemplate.IsAssignableFrom(type))
            {
                return((ResourceItem) new ItemsPanelTemplateResourceItem(resourceManager, resourceContainer, model));
            }
            if (PlatformTypes.Timeline.IsAssignableFrom(type))
            {
                return((ResourceItem) new TimelineResourceItem(resourceManager, resourceContainer, model));
            }
            if (PlatformTypes.XmlDataProvider.IsAssignableFrom(type))
            {
                return((ResourceItem) new DataSourceResourceItem(resourceManager, resourceContainer, model));
            }
            return((ResourceItem) new ResourceEntryItem(resourceManager, resourceContainer, model));
        }
 protected ResourceEntryItem(ResourceManager resourceManager, ResourceContainer resourceContainer, ResourceModel resource)
     : base(resourceManager, resourceContainer)
 {
     this.resource = resource;
 }