static void Main(string[] args) { var app = new Program(); try { var option = new InitializationOptions(app) { //Using DP without device scaling mode DisplayResolutionUnit = DisplayResolutionUnit.DP(), UseSkiaSharp = true }; Forms.Init(option); if (Device.Idiom == TargetIdiom.TV) { // UIControls.Init() should be called after Forms.Init() UIControls.Init(new InitOptions(app)); CommonUI.Init(app); } else { CommonUI.Init(app); CommonUI.AddCommonThemeOverlay(); } app.Run(args); } catch (Exception e) { Console.WriteLine($"Exception : {e.Message}"); } }