public MainPage()
        {
            this.InitializeComponent();
            AdaptiveCard card = new AdaptiveCard();

            card.Body.Add(new AdaptiveTextBlock()
            {
                Text = "Hello",
                Size = AdaptiveTextSize.ExtraLarge
            });

            card.Body.Add(new AdaptiveImage()
            {
                Url = new Uri("http://adaptivecards.io/content/cats/1.png")
            });

            var datePicker = new AdaptiveDateInput()
            {
                Id          = "123",
                Placeholder = "123",
                Value       = "2017-09-20"
            };

            card.Body.Add(datePicker);

            // serialize the card to JSON
            string json = card.ToJson();

            var renderer = new AdaptiveCards.Rendering.Uwp.AdaptiveCardRenderer();

            var cardNew = AdaptiveCards.Rendering.Uwp.AdaptiveCard.FromJsonString(json);

            var renderedAdaptiveCard = renderer.RenderAdaptiveCard(cardNew.AdaptiveCard);

            if (renderedAdaptiveCard.FrameworkElement != null)
            {
                myGrid.Children.Add(renderedAdaptiveCard.FrameworkElement);
            }
        }
 private void RenderCard(Border cardPreviewContainer, AdaptiveCards.Rendering.Uwp.AdaptiveCard uwpCard, AdaptiveCards.Rendering.Uwp.AdaptiveCardRenderer renderer)
 {
     cardPreviewContainer.Child = renderer.RenderAdaptiveCard(uwpCard).FrameworkElement;
 }