Example Silverlight control (embedded):
The ContactLabel displaying a contact's home, work and mobile phone numbers, and their email address.
The ContactLabel control is initialized with the following code:
<sl:ContactLabel HomePhoneNumber="(0118) 496 0337" WorkPhoneNumber="(0118) 496 0338"
MobilePhoneNumber="(07700) 900555" EmailAddress="jane.evans@abc.xyz" />
- HomePhoneLabelText – gets or sets the caption associated
with the contact's home phone number
- HomePhoneNumber – gets or sets the contact's home phone number
- WorkPhoneLabelText – gets or sets the caption associated
with the contact's work phone number
- WorkPhoneNumber – gets or sets the contact's work phone number
- MobilePhoneLabelText – gets or sets the caption associated
with the contact's mobile phone number
- MobilePhoneNumber – gets or sets the contact's mobile phone
number
- EmailLabelText – gets or sets the caption associated with
the contact's email address
- EmailAddress – gets or sets the contact's email address
- LabelFont – gets or sets the font styles for the labels
- DataFont – gets or sets the font styles for the data
- HomePhoneLabelText has a default value of “Home”
- HomePhoneNumber has a default value of “”
- WorkPhoneLabelText has a default value of “Work”
- WorkPhoneNumber has a default value of “”
- MobilePhoneLabelText has a default value of “Mobile”
- MobilePhoneNumber has a default value of “”
- EmailLabelText has a default value of “Email”
- EmailAddress has a default value of “”
Example WPF control (screenshot):
The ContactLabel displaying a contact's home, work and mobile phone numbers, and their email address.
Further information on this control, and the full source code, can be found in the
Microsoft Health Common User Interface Toolkit, which can be downloaded from our
CodePlex
site.
Example ASP.NET control (embedded):
The ContactLabel displaying a contact's home, work and mobile phone numbers, and their email address.
The ContactLabel control is initialized with the following code:
<NhsCui:ContactLabel
ID="ContactLabel1" EmailLabelText="Email" EmailAddress="jane.evans@abc.xyz"
HomePhoneNumber="(0118) 496 0337" WorkPhoneNumber="(0118) 496 0338"
MobilePhoneNumber="(07700) 900555" CssClass="ContactList"
runat="server">
- HomePhoneLabelText – gets or sets the caption associated
with the contact's home phone number
- HomePhoneNumber – gets or sets the contact's home phone number
- WorkPhoneLabelText – gets or sets the caption associated
with the contact's work phone number
- WorkPhoneNumber – gets or sets the contact's work phone number
- MobilePhoneLabelText – gets or sets the caption associated
with the contact's mobile phone number
- MobilePhoneNumber – gets or sets the contact's mobile phone
number
- EmailLabelText – gets or sets the caption associated with
the contact's email address
- EmailAddress – gets or sets the contact's email address
- LabelStyle – gets or sets the style for the labels
- DataStyle – gets or sets the style for the data
- HomePhoneLabelText has a default value of “Home”
- HomePhoneNumber has a default value of “”
- WorkPhoneLabelText has a default value of “Work”
- WorkPhoneNumber has a default value of “”
- MobilePhoneLabelText has a default value of “Mobile”
- MobilePhoneNumber has a default value of “”
- EmailLabelText has a default value of “Email”
- EmailAddress has a default value of “”
Example WinForms control (screenshot):
The ContactLabel displaying a contact's home, work and mobile phone numbers, and their email address.
Further information on this control, and the full source code, can be found in the
Microsoft Health Common User Interface Toolkit, which can be downloaded from our
CodePlex
site.