Restyle the Lync 2010 ContactList Control

Restyle the Microsoft Lync 2010 ContactList control by changing property values to alter the appearance of the control.

Restyle the ContactList Control

Use the following procedure to change the appearance of the control.

To restyle a ContactList control

  1. Create a Microsoft Lync Controls application by using the Microsoft Silverlight or Microsoft Windows Presentation Foundation template. For more information, see Walkthrough: Presence Hello World.

  2. In the XAML pane, add the XAML text to create a ContactList control. Add a style to set the Background and FontFamily properties on the control.

    <Grid>
            <Grid.Resources>
                <Style x:Key="MyContactListStyle" TargetType="Controls:ContactList">
                    <Setter Property="Background" Value="AliceBlue"/>
                    <Setter Property="FontFamily" Value="Courier New"/>
                </Style>
            </Grid.Resources>
            <Controls:ContactList Style="{StaticResource MyContactListStyle}"/>
    </Grid>
    
  3. Run the project. If the property values described in the previous step are used, the control background color is now blue, and the font family is now Courier New.

See Also

Other Resources

Customizing Lync 2010 Controls