private async void Model_StateChanged(object model, VisualStateEventArgs args)
        {
            var isActive = args.NewState.ToString().Equals(TargetState);

            Debug.WriteLine($"VisualStateTrigger {_guid}: target = {TargetState} new: {args.NewState.ToString()} result={isActive}");
            await this.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.High, () =>
            {
                SetActive(isActive);
            });
        }
        private void StateProvider_VisualStateChanged(object sender, VisualStateEventArgs e)
        {
            // Store in case public version of Apply is called
            currentStateName = e.StateName;

            // Apply using shortcut version
            ApplyState(currentStateName, e.UseTransitions, e.ForceUpdate);
        }