显示警报的绑定数据? [英] Binding Data For Display Alarms?

查看:85
本文介绍了显示警报的绑定数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试显示我的应用程序注册的警报列表。

I'm trying to display the list of alarms registered by my app.

所以基本上内容面板上有一个包含数据模板的列表框

So basically the content panel has a listbox with a data template in it

数据模板包含以下文本框: -

The data template has these text boxes:-

 < TextBlock Text =" {Binding Title}">

 <TextBlock Text="{Binding Title}">

 < TextBlock Text =" {Binding Content}">

 <TextBlock Text="{Binding Content}">

 < TextBlock Text =" {Binding BeginTime}">

 <TextBlock Text="{Binding BeginTime}">

前两个文本框按照我想要的方式工作,但第三个文本框显示整个日期和时间。

The first two textboxes work they way I want them too but the third one shows the entire date along with the time.

有没有办法只显示时间

还可以显示星期几吗?

推荐答案

您好,

是,请在以下文档中搜索Binding Converter:

Yes, do a search for Binding Converter in the following document:

http://charlespetzold.com/phone/index.html

-Hope这有帮助,

Mark

-Hope this helps,
Mark


这篇关于显示警报的绑定数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆