Gene Lim
Gene Lim

Reputation: 1068

DatePicker to text on navigated in Windows Phone

I am trying to convert the date format to text but as it said it doesn't have that Text extension. How do I solve this part? Below are my codes

if (NavigationContext.QueryString.ContainsKey("Date"))
        {
            dateData.Text = NavigationContext.QueryString["Date"].ToString();
        }

Upvotes: 0

Views: 88

Answers (1)

A.K.
A.K.

Reputation: 3331

if dateData is a datepicker control then DatePicker Has a 'Value' property you can not assign a 'Text' property to it.

Ty setting it like this:

dateData.Value=your value;

Upvotes: 1

Related Questions