This project is read-only.

SilverLight Patient Banner - Fonts

Dec 15, 2008 at 9:51 PM
Hi,

I'm writing a Silverlight demonstrator with the MS CUI controls. I have set a dark background colour for my patient banner and I want to make the text white, however I can't find any examples of how to do this. I assume this is defined using the CUI.Font attributes of the PatientBanner? Can anyone post an example of how they have set their fonts in the patient banner for silverlight?

Thanks

 
Dec 16, 2008 at 10:24 AM
We customise the banner in the Patient Journey Demonstrator. Here is the XAML that we used. Hope this helps.
Thanks,
-Stuart.

<mscui_controls:PatientBanner

                x:Name="patientBanner"  

            Foreground="White"

                                 PatientNameFont="Arial, 18, Normal, Bold,,White"

                                 FamilyName="Johnson"

                                   GivenName="Brian"

                                   Identifier="012 345 6789"

                                   DateOfBirth="24-Jul-1945"

                                   Gender="Male"

                                   HomePhoneNumber="(0116) 123 4567"

                                   WorkPhoneNumber="(0118) 912 3456"

                                   MobilePhoneNumber="(07719) 123456"

                                   EmailAddress="someone@example.com"

                                   Address1="25 Rochester Road" Address2="" Town="Linthorpe" County="Northshire" Postcode="NS6 9QP"

                                   IdentifierType="NhsNumber"

                                   Title="Mr"

                                          AllergyInformation="Present"

                                          BorderWidth="0"

                                          BorderBrush="White"   

            ZoneTwoBackColor="#11000000"

            PatientNameToolTip=""

            DateOfBirthToolTip=""

            GenderValueTooltip=""

            IdentifierTooltip=""

            DateOfDeathToolTip=""

            AgeAtDeathTooltip=""

            PreferredNameToolTip=""

                           >

            <mscui_controls:PatientBanner.Style>

                <Style TargetType="mscui_controls:PatientBanner">

                    <Setter Property="ZoneTwoHoverBackColor" Value="#ff999999" />

                    <Setter Property="PatientNameFont" Value="Arial, 18, Normal, Bold,,White" />

                   

                    <Setter Property="PatientNameHoverFont" Value="Arial, 18, Normal, Bold, , White" />

                    <Setter Property="ZoneOneLabelFont" Value="Arial, 13, Italic, Normal,,White" />

                    <Setter Property="ZoneOneDataFont" Value="Arial, 14, Normal, Bold,,White" />

                    <Setter Property="ZoneOneDataHoverFont" Value="Arial, 12, Normal, Bold,, White" />

                    <Setter Property="ZoneTwoTitleLabelFont" Value="Arial, 12, Italic, Normal,,White" />

                    <Setter Property="ZoneTwoTitleDataFont" Value="Arial, 12, Normal, Bold,,White" />

                    <Setter Property="ZoneTwoTitleLabelHoverFont" Value="Arial, 12, Italic, Normal,,White" />

                    <Setter Property="ZoneTwoTitleDataHoverFont" Value="Arial, 12, Normal, Bold,,White" />

                    <Setter Property="ZoneTwoLabelFont" Value="Arial, 12, Italic, Normal,,White" />

                    <Setter Property="ZoneTwoDataFont" Value="Arial, 12, Normal, Bold,,White" />

                    <Setter Property="ZoneTwoLinksFont" Value="Arial, 12, Normal, Normal,,#44ffffff" />

                </Style>

            </mscui_controls:PatientBanner.Style>

 

        </mscui_controls:PatientBanner>