Beispiel #1
0
        static internal PropertyValue ToPropertyValue(ShadowBase instance)
        {
            if (instance == null || !instance.IsValid())
            {
                return(new PropertyValue());
            }

            instance.propertyMap[Visual.Property.Transform] = instance.GetTransformMap();

            return(new PropertyValue(instance.propertyMap));
        }
Beispiel #2
0
        static internal PropertyValue ToPropertyValue(ShadowBase instance, BaseComponents.View attachedView)
        {
            if (instance == null || !instance.IsValid())
            {
                return(new PropertyValue());
            }

            instance.propertyMap[Visual.Property.Transform] = instance.GetTransformMap(attachedView);

            return(new PropertyValue(instance.propertyMap));
        }
Beispiel #3
0
 protected ShadowBase(ShadowBase other) : this(other == null ? throw new ArgumentNullException(nameof(other)) : other.Offset, other.Extents)
 {
 }
Beispiel #4
0
 protected ShadowBase(ShadowBase other) : this(other?.Offset, other.Extents)
 {
 }
Beispiel #5
0
 public ShadowBase(ShadowBase other) : this(other.offset, other.scale)
 {
 }
Beispiel #6
0
 public ShadowBase(ShadowBase other) : this(other.offset, other.extents)
 {
 }