-<Project Sdk="Tizen.NET.Sdk/1.1.9">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<DebugType>None</DebugType>
</PropertyGroup>
- <ItemGroup>
- <Compile Remove="lib\**" />
- <EmbeddedResource Remove="lib\**" />
- <None Remove="lib\**" />
- <TizenLibrary Remove="lib\**" />
- </ItemGroup>
<ItemGroup>
- <Folder Include="bin\" />
- <Folder Include="obj\" />
<Folder Include="res\images\" />
</ItemGroup>
<ItemGroup>
- <PackageReference Include="Tizen.NET" Version="11.0.0.17687">
- <TreatAsUsed>true</TreatAsUsed>
- </PackageReference>
+ <PackageReference Include="Tizen.NET" Version="11.0.0.17643" />
+ <PackageReference Include="Tizen.NET.Sdk" Version="1.1.9" />
</ItemGroup>
+
</Project>
\ No newline at end of file
# Visual Studio Version 16
VisualStudioVersion = 16.0.31613.86
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HomeScreenApp", "HomeScreenApp.csproj", "{19284517-B5DB-4901-B096-4F4464690425}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HomeScreenApp", "HomeScreenApp.csproj", "{BEE8DB1E-B0B9-4A34-AE68-7BCC45E05248}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {19284517-B5DB-4901-B096-4F4464690425}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {19284517-B5DB-4901-B096-4F4464690425}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {19284517-B5DB-4901-B096-4F4464690425}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {19284517-B5DB-4901-B096-4F4464690425}.Release|Any CPU.Build.0 = Release|Any CPU
+ {BEE8DB1E-B0B9-4A34-AE68-7BCC45E05248}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {BEE8DB1E-B0B9-4A34-AE68-7BCC45E05248}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {BEE8DB1E-B0B9-4A34-AE68-7BCC45E05248}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {BEE8DB1E-B0B9-4A34-AE68-7BCC45E05248}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {4EA2386D-CBEE-4FBA-89C3-60C9CD961661}
- SolutionGuid = {3D35DA44-5A0D-4490-B0A6-D3BBD88B39BE}
+ SolutionGuid = {68B6AD60-DA93-44C9-AE5F-FE982B37F24C}
EndGlobalSection
EndGlobal
{
class ViewManager
{
- private View HomeScreenView;
+ private ImageView HomeScreenView;
private TextLabel swipeUpText;
private string HomeScreenWallpaper { get; set; }
public ViewManager()
{
- HomeScreenView = new View()
+ HomeScreenView = new ImageView()
{
Size2D = new Size2D(Window.Instance.Size.Width, Window.Instance.Size.Height),
Layout = new RelativeLayout(),
Padding = new Extents(0, 0, 0, 48).SpToPx(),
+ FittingMode = FittingModeType.ScaleToFill,
};
Window.Instance.Add(HomeScreenView);
{
HomeScreenWallpaper = SystemSettings.WallpaperHomeScreen;
Tizen.Log.Info(Resources.LogTag, "HomeScreenWallpaper" , HomeScreenWallpaper ?? "Wallpaper path is empty");
- HomeScreenView.BackgroundImage = HomeScreenWallpaper ?? "*Resource*/images/default_bg.png";
+ HomeScreenView.ResourceUrl = HomeScreenWallpaper ?? "*Resource*/images/default_bg.png";
}
catch (ArgumentException ex)
{