0
너깃 패키지 SVG.Forms.Plugin.Abstractions를 사용하고 있는데 아래 간단한 예제에서 XAML을 복사했지만 표시 할 svg를 얻을 수 없습니다. 이미지는 TestApp 응용 프로그램의 'images'폴더에 있으며 빌드 작업은 포함 리소스입니다. SvgAssebly는 viewModel 아래의 public 어셈블리에 바인딩됩니다. 상단에 제목 텍스트가있는 빈 화면이 나타납니다. 누구나 분명히 무엇인가 잘못 볼 수 있습니까?Xamarin Forms에서 svg 이미지 사용
public Assembly SvgAssembly
{
get { return typeof(App).GetTypeInfo().Assembly; }
}
XAML :
<?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TestApp.MainPage"
xmlns:artina="clr-namespace:UXDivers.Artina.Shared;assembly=UXDivers.Artina.Shared"
xmlns:local="clr-namespace:TestApp;assembly=TestApp" Title="{ artina:Translate PageTitle}" BackgroundColor="{DynamicResource BasePageColor}"
xmlns:abstractions="clr-namespace:SVG.Forms.Plugin.Abstractions;assembly=SVG.Forms.Plugin.Abstractions">
<ContentPage.Content>
<StackLayout>
<abstractions:SvgImage
SvgAssembly="{Binding SvgAssembly }"
SvgPath="TestApp.images.brand.svg"
Width="200"
Height="200" />
</StackLayout>
</ContentPage.Content>
</ContentPage>
에서 무엇을 장치 플랫폼에 집중하고 있습니까? – LeRoy