public MainPage()
        {
            InitializeComponent();

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

            BindingContext = tipCalculator;
        }
Esempio n. 2
0
        public MainPage()
        {
            InitializeComponent();
            On <iOS>().SetUseSafeArea(true);

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

            BindingContext = tipCalculator;
        }