示例#1
0
        //================================================================

        /*----------------------------------
         *
         * OnSizeAllocated override
         *
         * -------------------------------*/

        protected override void OnSizeAllocated(double width, double height)
        {
            ovm.deviceScreen.GetScreenDetails();
            BackgroundImageSource = ovm.GetImageSource();

            base.OnSizeAllocated(width, height);
        }
示例#2
0
        //=============================================================

        /*----------------------------------
         *
         * 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;
        }