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)); }
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)); }