Reputation: 13972
I've tried to load some SVG files with the same result: they're rendering clipped and they seem to ignore the layout.
For instance:
<UserControl
x:Class="SuppaFlight.UWP.AnglesControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300"
d:DesignWidth="1000">
<Image Source="Assets/treeicon.svg" Stretch="UniformToFill" />
</UserControl>
Renders like this, ignoring the Stretch
setting:
What's going on there? Is it a known problem? How to workaround this?
Upvotes: 1
Views: 1694
Reputation: 26
Try to convert your SVG image into PNG or some other format online Website to Convert SVG to PNG
Upvotes: 0
Reputation: 186
these steps solved my issue, may be will help you
Upvotes: 1