//================================================================ /*---------------------------------- * * OnSizeAllocated override * * -------------------------------*/ protected override void OnSizeAllocated(double width, double height) { ovm.deviceScreen.GetScreenDetails(); BackgroundImageSource = ovm.GetImageSource(); base.OnSizeAllocated(width, height); }
//============================================================= /*---------------------------------- * * Constructor * * -------------------------------*/ public OptionsPage(GamePageViewModel gpvm, GamePage current_game) { ovm = new OptionsPageViewModel(); ovm.deviceScreen = new Screen(); BackgroundImageSource = ovm.GetImageSource(); InitializeComponent(); BindingContext = ovm; GPVM = gpvm; CurrentGame = current_game; }