Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
然后我想当用户从文本框中的日期选择器中选择日期时,它将显示日期,如 01-April-2012
请告诉我它是如何完成的??提前致谢
你必须格式化你的文本框。假设文本框已经绑定到 DatePicker,它应该类似于
<TextBlock Text="{Binding ElementName=DatePicker1, Path=Value, StringFormat={}{0:dd-MMMM-yyyy}}" />