public App() { InitializeComponent(); this.Resources["screenDensity"] = DeviceDisplay.MainDisplayInfo.Density; this.Resources["screenDensityHeight"] = (DeviceDisplay.MainDisplayInfo.Height / DeviceDisplay.MainDisplayInfo.Density) - new OnPlatform <double> { Android = 20 }; this.Resources["screenDensityWidth"] = DeviceDisplay.MainDisplayInfo.Width / DeviceDisplay.MainDisplayInfo.Density; this.Resources["screenDensityWidthMinusButtonSize"] = (double)this.Resources["screenDensityWidth"] - (double)this.Resources["buttonSize"]; App.Container = new Ninject.StandardKernel(new IOC()); MainPage = new PokedexPage(); }
public App() { InitializeComponent(); //this.MontersListAllResumeViewModel = new MontersListAllResumeViewModel(new RepositoryService()); this.Resources["screenDensity"] = DeviceDisplay.ScreenMetrics.Density; this.Resources["screenDensityHeight"] = (DeviceDisplay.ScreenMetrics.Height / DeviceDisplay.ScreenMetrics.Density) - new OnPlatform <double> { Android = 20 }; this.Resources["screenDensityWidth"] = DeviceDisplay.ScreenMetrics.Width / DeviceDisplay.ScreenMetrics.Density; this.Resources["screenDensityWidthMinusButtonSize"] = (double)this.Resources["screenDensityWidth"] - (double)this.Resources["buttonSize"]; App.Container = new Ninject.StandardKernel(new IOC()); MainPage = new PokedexPage(); }