internal override void ApplyBorderline()
{
- // Ignore BACKGROUND borderline property. only apply borderline to IMAGE.
+ base.ApplyBorderline();
+
+ // Apply borderline to IMAGE.
if (backgroundExtraData != null)
{
var borderlineColor = backgroundExtraData.BorderlineColor == null ? new PropertyValue(Color.Black) : new PropertyValue(backgroundExtraData.BorderlineColor);
imageValue.Dispose();
borderlineColor.Dispose();
}
+
UpdateImage(0, null);
}
}
}
+ if (backgroundExtraData != null && backgroundExtraData.BorderlineWidth > 0.0f)
+ {
+ using (var borderlineWidth = new PropertyValue(backgroundExtraData.BorderlineWidth))
+ using (var borderlineColor = new PropertyValue(backgroundExtraData.BorderlineColor))
+ using (var borderlineOffset = new PropertyValue(backgroundExtraData.BorderlineOffset))
+ {
+ imageMap.Insert(Visual.Property.BorderlineWidth, borderlineWidth);
+ imageMap.Insert(Visual.Property.BorderlineColor, borderlineColor);
+ imageMap.Insert(Visual.Property.BorderlineOffset, borderlineOffset);
+ }
+ }
+
if (value != null)
{
imageMap?.Insert(key, value);