コード例 #1
0
        public MainPage()
        {
            InitializeComponent();

            tipCalculator = new TipCalculator
            {
                Total      = 100,
                TipPercent = 18
            };
            tipCalculator.CalcTip();

            BindingContext = tipCalculator;
        }
コード例 #2
0
        public MainPage()
        {
            InitializeComponent();
            On <iOS>().SetUseSafeArea(true);

            tipCalculator = new TipCalculator
            {
                Total      = 100,
                TipPercent = 18
            };
            tipCalculator.CalcTip();

            BindingContext = tipCalculator;
        }