protected override void OnCreate() { base.OnCreate(); var watchfaceApp = new TextWatchApplication(); _viewModel = new ClockViewModel(); watchfaceApp.BindingContext = _viewModel; LoadWatchface(watchfaceApp); }
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); }