Esempio n. 1
0
        private void initNumbers()
        {
            const string digits  = "0123456789ABCDEF";
            var          numbers = App.Locator.AppSettings.AreDigitsShuffled ? digits.Shuffle() : digits.ToCharArray().ToList();
            var          labels  = VisualTreeHelper.FindObjects(this, o =>
            {
                var v = (o as VisualElement);
                return(!string.IsNullOrWhiteSpace(v?.ClassId) && v.ClassId.StartsWith("*"));
            });
            var cpt = 0;

            foreach (var o in labels)
            {
                var label = (AnimatedTapLabel)o;
                if (label != null)
                {
                    label.Text = numbers[cpt++] + "";
                }
            }
        }