示例#1
0
 protected TypedResourceItem(ResourceManager resourceManager, ResourceContainer resourceContainer, ResourceModel resource)
     : base(resourceManager, resourceContainer, resource)
 {
 }
示例#2
0
 public BrushResourceItem(ResourceManager resourceManager, ResourceContainer resourceContainer, ResourceModel resource)
     : base(resourceManager, resourceContainer, resource)
 {
 }
示例#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)
 {
 }
示例#6
0
 public DrawingImageResourceItem(ResourceManager resourceManager, ResourceContainer resourceContainer, ResourceModel resource)
     : base(resourceManager, resourceContainer, resource)
 {
 }
示例#7
0
 public DataSourceResourceItem(ResourceManager resourceManager, ResourceContainer resourceContainer, ResourceModel resourceModel)
     : base(resourceManager, resourceContainer, resourceModel)
 {
 }
示例#8
0
        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));
        }
示例#9
0
 protected ResourceEntryItem(ResourceManager resourceManager, ResourceContainer resourceContainer, ResourceModel resource)
     : base(resourceManager, resourceContainer)
 {
     this.resource = resource;
 }