Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/316.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/111.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# System.NotSupportedException:SVG元素“;“风格”;Xamarin表单不支持_C#_Xaml_Svg_Xamarin - Fatal编程技术网

C# System.NotSupportedException:SVG元素“;“风格”;Xamarin表单不支持

C# System.NotSupportedException:SVG元素“;“风格”;Xamarin表单不支持,c#,xaml,svg,xamarin,C#,Xaml,Svg,Xamarin,我正在用Xamarin.Forms和nuget插件构建一个XAML用户界面。我已按照指南进行操作,布局如下: <Grid VerticalOptions="Center" HorizontalOptions="Center" BackgroundColor="#3DBEAF" > <Grid.RowDefinitions> <RowDefinition Height="10" /> <RowDefinition H

我正在用Xamarin.Forms和nuget插件构建一个XAML用户界面。我已按照指南进行操作,布局如下:

   <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>

我已经跟着导游走了。但是,我收到了以下错误消息,是什么导致了这种情况,我是否已经做了/可以修复

System.NotSupportedException:不支持SVG元素“样式” 位于NGraphics.Custom.Parsers.SvgReader.AddElement(IList`1列表,System.Xml.Linq.XElement e,NGraphics.Custom.Models.Pen inheritationpen,NGraphics.Custom.Models.brush.BaseBrush inheritationbasebrush)[0x00577]in:0


嗯,例外情况很明显,SVG包含一个该库不支持的“样式”元素,在没有样式标记的情况下重新创建SVG,或者使用另一个库(如果有)。啊,所以我需要更改实际的SVG资源?是的,该库支持SVG规范的一小部分,因此,如果发现任何不受支持的标记,异常就会出现,异常非常明显,SVG包含该库不支持的“样式”元素,请在不使用样式标记的情况下重新创建SVG,或者使用其他库(如果有)。啊,所以我需要更改实际的SVG资源?是的,该库支持SVG规范的一小部分,所以如果发现任何不受支持的标记,就会出现异常