WPF中的数据模板 [英] Data Templates in WPF

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

问题描述

你好,

任何机构都可以在WPF中解释数据模板.我是WPF的新手.我在称为患者"的表格中有5个字段.患者ID,患者姓名,出生日期,地址1,地址2,城市,州,邮政编码.我需要在以下情况下演示.
病人1
**************************************
*患者ID:SDXCF000                  *
*患者姓名:John,Doe                 *
*日期0f出生:1964年1月1日               *
*地址1:圣殿街             *
*地址2:地块编号567                  *
*城市:旧金山                  *州:SA                   /> * *邮政编码:20171-1023                  *
******************************************
患者2
**************************************
*患者ID:SDXCF000                  *
*患者姓名:John,Doe                 *
*日期0f出生:1964年1月1日               *
*地址1:圣殿街             *
*地址2:地块编号567                  *
*城市:旧金山                  *州:SA                   /> * *邮政编码:20171-1023                  *
******************************************
患者3
**************************************
*患者ID:SDXCF000                  *
*患者姓名:John,Doe                 *
*日期0f出生:1964年1月1日               *
*地址1:圣殿街             *
*地址2:地块编号567                  *
*城市:旧金山                  *州:SA                   /> * *邮政编码:20171-1023                  *
******************************************
病人4
**************************************
*患者ID:SDXCF000                  *
*患者姓名:John,Doe                 *
*日期0f出生:1964年1月1日               *
*地址1:圣殿街             *
*地址2:地块编号567                  *
*城市:旧金山                  *州:SA                   /> * *邮政编码:20171-1023                  *
******************************************

希望我能清楚地阐明自己.

chowdary.

Hello,

Can any body explain Data Templates in WPF. I am new to WPF. I have 5 fields in a table called patient. Patient ID, Patient Name, Date of Birth, Address1, Address2, City, State, Zipcode. I need to show in the following scenario.
Patient 1
**********************************
*PatientID:SDXCF000                               *
*PatientName:John,Doe                            *
*Date 0f Birth:01/01/1964                         *
*Address1 : Temple Stree                          *
*Address2:Plot no 567                               *
*City : San Fransicso                                *
*State : SA                                             *
*Zipcode: 20171-1023                               *
***********************************
Patient 2
*********************************
*PatientID:SDXCF000                               *
*PatientName:John,Doe                            *
*Date 0f Birth:01/01/1964                         *
*Address1 : Temple Stree                          *
*Address2:Plot no 567                               *
*City : San Fransicso                                *
*State : SA                                             *
*Zipcode: 20171-1023                               *
***********************************
Patient 3
*********************************
*PatientID:SDXCF000                               *
*PatientName:John,Doe                            *
*Date 0f Birth:01/01/1964                         *
*Address1 : Temple Stree                          *
*Address2:Plot no 567                               *
*City : San Fransicso                                *
*State : SA                                             *
*Zipcode: 20171-1023                               *
***********************************
Patient 4
**********************************
*PatientID:SDXCF000                               *
*PatientName:John,Doe                            *
*Date 0f Birth:01/01/1964                         *
*Address1 : Temple Stree                          *
*Address2:Plot no 567                               *
*City : San Fransicso                                *
*State : SA                                             *
*Zipcode: 20171-1023                               *
***********************************

Hope i explined my self clearly.

chowdary.

推荐答案

网上有一个非常酷的网站.当您学习使用该网站时,我所说的网站非常有用.

该站点就像一个瓶中的天才.唯一的区别是您根本不应该擦拭灯泡.只需在此处输入问题即可:)

您可以在此处找到该网站.

也许这可以帮助您导览WPF –第4部分(数据模板和触发器) [
There is a very cool site around the net. The site what I talking about is very useful when you learn to use it.

That site is like a genius in a bottle. The only difference is that you should not rub the lamp at all. Just type your questions there :)

The site you can find here.

May be this helps you A Guided Tour of WPF – Part 4 (Data templates and triggers)[^]

Hope you can find it useful.


这篇关于WPF中的数据模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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