Restyle the ContactList control
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
Use the following procedure to change the appearance of the control.
To restyle a ContactList control
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.
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>
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.