Skip to content

Commit b04d541

Browse files
committed
Update SVGImage.cs
Preserved defaults
1 parent 1f44916 commit b04d541

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Source/SVGImage/SVG/SVGImage.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public enum eSizeType
7373
new FrameworkPropertyMetadata(null, OnUriSourceChanged));
7474

7575
public static DependencyProperty SizeTypeProperty = DependencyProperty.Register("SizeType",
76-
typeof(eSizeType), typeof(SVGImage), new FrameworkPropertyMetadata(eSizeType.ViewBoxToSizeNoStretch,
76+
typeof(eSizeType), typeof(SVGImage), new FrameworkPropertyMetadata(eSizeType.ContentToSizeStretch,
7777
FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender,
7878
new PropertyChangedCallback(OnSizeTypeChanged)));
7979

@@ -124,9 +124,6 @@ public SVGImage()
124124

125125
m_offsetTransform = new TranslateTransform();
126126
m_scaleTransform = new ScaleTransform();
127-
128-
this.SetValue(HorizontalContentAlignmentProperty, HorizontalAlignment.Center);
129-
this.SetValue(VerticalContentAlignmentProperty, VerticalAlignment.Center);
130127
}
131128

132129
public SVG SVG

0 commit comments

Comments
 (0)