Restyle the ContactList control

Beyond the basics topic

Learn how to restyle the ContactList control by changing property values to alter the appearance of the control.

Applies to: Lync 2013 | Lync Server 2013

In this article
Restyling a Lync Control
Additional resources

Restyling a Lync Control

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

To restyle a ContactList control

  1. Create a Microsoft Lync Controls application using the Microsoft Silverlight or Microsoft WPF template.

    For more information, see How to: Create a Silverlight page that displays a Lync presence control.

  2. In the XAML pane, add the XAML text to create a ContactList control.

  3. 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>
    
  4. 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

Customizing Lync Controls