예제 #1
0
        protected override void OnCreate()
        {
            base.OnCreate();
            var watchfaceApp = new TextWatchApplication();

            _viewModel = new ClockViewModel();
            watchfaceApp.BindingContext = _viewModel;
            LoadWatchface(watchfaceApp);
        }
예제 #2
0
        protected override void OnCreate()
        {
            base.OnCreate();

            // ElmSharp.Utility.AppendGlobalFontPath(DirectoryInfo.Resource);
            var watchfaceApp = new TextWatchApplication();

            _viewModel = new ClockViewModel();
            watchfaceApp.BindingContext = _viewModel;

            SetTimeTickFrequency(1, TimeTickResolution.TimeTicksPerSecond);
            LoadWatchface(watchfaceApp);
        }