diff --git a/src/Essentials/samples/Samples/Essentials.Sample.csproj b/src/Essentials/samples/Samples/Essentials.Sample.csproj index 68d4e6d739e1..59ae2ce826ee 100644 --- a/src/Essentials/samples/Samples/Essentials.Sample.csproj +++ b/src/Essentials/samples/Samples/Essentials.Sample.csproj @@ -30,6 +30,11 @@ + + + + + @@ -47,4 +52,4 @@ - \ No newline at end of file + diff --git a/src/Essentials/samples/Samples/Platforms/Tizen/Program.cs b/src/Essentials/samples/Samples/Platforms/Tizen/Program.cs index 4602bc64c8f2..ba600d072e83 100644 --- a/src/Essentials/samples/Samples/Platforms/Tizen/Program.cs +++ b/src/Essentials/samples/Samples/Platforms/Tizen/Program.cs @@ -13,4 +13,4 @@ static void Main(string[] args) app.Run(args); } } -} +} \ No newline at end of file diff --git a/src/Essentials/samples/Samples/Startup.cs b/src/Essentials/samples/Samples/Startup.cs index b85505ad73d9..539c469ddc68 100644 --- a/src/Essentials/samples/Samples/Startup.cs +++ b/src/Essentials/samples/Samples/Startup.cs @@ -30,6 +30,21 @@ public static MauiApp CreateMauiApp() essentials.OnAppAction(App.HandleAppActions); }); +#if TIZEN + builder + .ConfigureServices(services => + { + services.AddTransient((_) => + { + var option = new InitializationOptions + { + DisplayResolutionUnit = DisplayResolutionUnit.DP(true), + }; + return option; + }); +#endif + }); + return builder.Build(); } }