コード例 #1
0
ファイル: OptionsPage.xaml.cs プロジェクト: acoville/Valkyrie
        //================================================================

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

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

            base.OnSizeAllocated(width, height);
        }
コード例 #2
0
ファイル: OptionsPage.xaml.cs プロジェクト: acoville/Valkyrie
        //=============================================================

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