private void Render()
        {
            try
            {
                var cardPayload = TextBoxCardPayload.Text;

                DebuggingPage.RunInWindowThread((page) =>
                {
                    page.ResetForNewTemplate(cardPayload);
                });

                if (_renderer == null || _shouldResetData)
                {
                    _renderer = new AdaptiveCardRenderer();
                    _renderer.OnCardChanges += _renderer_OnCardChanges;
                    _renderer.OnTransformedTemplateChanged += _renderer_OnTransformedTemplateChanged;
                    _renderer.OnDataChanged        += _renderer_OnDataChanged;
                    _renderer.OnVirtualCardChanged += _renderer_OnVirtualCardChanged;
                    CardContainer.Child             = _renderer.Render(cardPayload, TextBoxDataPayload.Text, CardScript.Text);
                }
                else
                {
                    _renderer.UpdateTemplate(cardPayload);
                }

                _shouldResetData = false;
            }
            catch (Exception ex)
            {
                CardContainer.Child = new TextBlock()
                {
                    Text         = ex.ToString(),
                    TextWrapping = TextWrapping.Wrap
                };
            }
        }