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

            Title = "MainPage";

            this.platform = platform;

            timer = new AutoIncrementalValueProvider();

            var binding = new Binding()
            {
                Source = timer,
                Path   = "Counter",
            };

            timerLabel.SetBinding(Label.TextProperty, binding);
        }
コード例 #2
0
        public App(IPhotographerPlatform platform)
        {
            InitializeComponent();

            MainPage = new NavigationPage(new MainPage(platform));
        }