Created
January 3, 2020 01:48
-
-
Save myroot/bb8cd40888ad95b31025957d6335d774 to your computer and use it in GitHub Desktop.
SvgCachedImage Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Xamarin.Forms; | |
using FFImageLoading.Svg.Forms; | |
using Tizen.Wearable.CircularUI.Forms; | |
namespace SVGTest | |
{ | |
public class App : Application | |
{ | |
public App() | |
{ | |
// The root page of your application | |
MainPage = new CirclePage | |
{ | |
Content = new StackLayout | |
{ | |
VerticalOptions = LayoutOptions.Center, | |
Children = { | |
new SvgCachedImage | |
{ | |
VerticalOptions = LayoutOptions.Center, | |
HorizontalOptions = LayoutOptions.Center, | |
HeightRequest = 100, | |
WidthRequest = 100, | |
Source = "twitter.svg" | |
} | |
} | |
} | |
}; | |
} | |
protected override void OnStart() | |
{ | |
// Handle when your app starts | |
} | |
protected override void OnSleep() | |
{ | |
// Handle when your app sleeps | |
} | |
protected override void OnResume() | |
{ | |
// Handle when your app resumes | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Xamarin.Forms; | |
using FFImageLoading.Forms; | |
namespace SVGTest | |
{ | |
class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication | |
{ | |
protected override void OnCreate() | |
{ | |
base.OnCreate(); | |
LoadApplication(new App()); | |
} | |
static void Main(string[] args) | |
{ | |
var app = new Program(); | |
FFImageLoading.Forms.Platform.CachedImageRenderer.Init(app); | |
Forms.Init(app); | |
global::Tizen.Wearable.CircularUI.Forms.Renderer.FormsCircularUI.Init(); | |
app.Run(args); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Tizen.NET.Sdk/1.0.3"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>tizen40</TargetFramework> | |
</PropertyGroup> | |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |
<DebugType>portable</DebugType> | |
</PropertyGroup> | |
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |
<DebugType>None</DebugType> | |
</PropertyGroup> | |
<ItemGroup> | |
<Folder Include="lib\" /> | |
</ItemGroup> | |
<ItemGroup> | |
<PackageReference Include="Tizen.Wearable.CircularUI" Version="1.4.0" /> | |
<PackageReference Include="Xamarin.FFImageLoading.Forms" Version="2.4.11.982" /> | |
<PackageReference Include="Xamarin.FFImageLoading.Svg.Forms" Version="2.4.11.982" /> | |
<PackageReference Include="Xamarin.Forms" Version="4.4.0.991265" /> | |
</ItemGroup> | |
</Project> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment