public App() { InitializeComponent(); CustomFontSize = new CustomFontSize(); CustomFontSize.PropertyChanged += CustomFontSize_PropertyChanged; CustomFontSize.Init(); CustomColor = new CustomColor(); CustomColor.PropertyChanged += CustomColor_PropertyChanged; CustomColor.Init(); try { MainPage = new NavigationPage(new MainView()); } catch (Exception ex) { } }