/// <summary>
        /// Called when this watchface application is launched
        /// </summary>
        protected override void OnCreate()
        {
            base.OnCreate();
            _viewModel            = new WatchViewModel();
            _watch                = new ChronographWatchApplication(_viewModel);
            _watch.BindingContext = _viewModel;
            LoadWatchface(_watch);
            _initialized = false;

            _viewModel.Time = GetCurrentTime().UtcTimestamp;
            _watch.MoveHands();
        }
Exemple #2
0
 /// <summary>
 /// Constructor of ChronographWatch Application
 /// </summary>
 /// <param name="viewModel">WatchViewModel</param>
 public ChronographWatchApplication(WatchViewModel viewModel)
 {
     _viewModel = viewModel;
     InitializeComponent();
     BindingContext = viewModel;
 }