What I have:
1. a textblock in the XAML
2. a query from a database which contains a DateTime? type data.
What I do:
1. I declare a class “myClass” with a DateTime? parameter named “myDate”
What I want
1. show the MyDate in the textblock [I know]
2. when the value of “myDate” is null, show a string in the textblock. [I don’t know, because the Get method can only return a DateTime? type value but not a String type.]
Try using Binding with your textblock like this :