System.NotSupportedException: SVG element “style” is not supported with Xamarin Forms

余生颓废 提交于 2020-02-06 04:59:10

问题


I am builidng a XAML UI, with Xamarin.Forms, using this nuget plugin. I have followed the guide and have the following layout:

   <Grid VerticalOptions="Center" HorizontalOptions="Center" BackgroundColor="#3DBEAF" >
   <Grid.RowDefinitions>
       <RowDefinition Height="10" />
       <RowDefinition Height="Auto" /> 
   </Grid.RowDefinitions>
   <Grid.ColumnDefinitions>
    <ColumnDefinition Width="10" />
    <ColumnDefinition Width="Auto" />
  </Grid.ColumnDefinitions>
  <abstractions:SvgImage Grid.Row="0" Grid.Column="0" SvgAssembly="{Binding SvgAssembly}" SvgPath="{Binding Logo_Round}" HeightRequest="50" WidthRequest="50" BackgroundColor="White" HorizontalOptions="Center" VerticalOptions="Center"/>
   </Grid>

I have followed the guide. However, I get the following error message, what is causing this, and is it something I have done / can fix?

System.NotSupportedException: SVG element "style" is not supported at NGraphics.Custom.Parsers.SvgReader.AddElement (IList`1 list, System.Xml.Linq.XElement e, NGraphics.Custom.Models.Pen inheritPen, NGraphics.Custom.Models.Brushes.BaseBrush inheritBaseBrush) [0x00577] in :0

来源:https://stackoverflow.com/questions/34683540/system-notsupportedexception-svg-element-style-is-not-supported-with-xamarin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!