Ejemplo n.º 1
0
        protected override BaseTicker GetTickerInstance()
        {
            if (CoreApplication.Views.Count > 1)
            {
                // We've got multiple windows open, we'll need to use the local ThreadStatic Ticker instead of the
                // singleton in the base class
                if (s_ticker == null)
                {
                    s_ticker = new Ticker();
                }

                return(s_ticker);
            }

            return(base.GetTickerInstance());
        }
Ejemplo n.º 2
0
 public static void SetDefault(BaseTicker ticker) => Default = ticker;