显示警报的绑定数据?

编程入门 行业动态 更新时间:2024-10-26 14:33:47
本文介绍了显示警报的绑定数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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:

charlespetzold/phone/index.html

-Hope这有帮助, Mark

-Hope this helps, Mark

更多推荐

显示警报的绑定数据?

本文发布于:2023-11-27 16:56:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1638836.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:警报   绑定   数据

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!