Beispiel #1
0
        internal static void UpdateLottieView(Button button, ControlState previousState, LottieAnimationView lottieView)
        {
            var lottieStyle = ((ILottieButtonStyle)button.Style);

            if (lottieStyle.PlayRange != null && lottieStyle.PlayRange.GetValue(button.ControlState, out var result))
            {
                result.Show(lottieView, !previousState.Contains(ControlState.Pressed));
            }
        }
Beispiel #2
0
        public void ControlStateContainsWithNullState()
        {
            tlog.Debug(tag, $"ControlStateContainsWithNullState START");

            ControlState state = ControlState.Create("Focused");

            try
            {
                state.Contains(null);
            }
            catch (ArgumentNullException e)
            {
                tlog.Debug(tag, e.Message.ToString());
                tlog.Debug(tag, $"ControlStateContainsWithNullState END (OK)");
                Assert.Pass("Caught ArgumentNullException: Passed!");
            }
        }