Create a Lync Silverlight Controls application for Windows 8 and Windows 8 Pro

Applies to: Lync 2013 | Lync Server 2013 | Visual Studio | Windows

Learn how to use the Lync 2013 SDK to create a Lync Silverlight Controls application for Windows 8 and Windows 8 Pro.

Applications that are developed with the Lync 2013 SDK run on the Windows 8 desktop. This article describes how to create a Lync Silverlight Controls application by using Lync Controls and also discusses how to open the Silverlight application in Internet Explorer.

Requirements

  • Lync 2013 SDK

  • Visual Studio 2010 and later versions of Visual Studio

Note

To run the Lync Silverlight Controls application, you must sign in to the Lync client.

Internet Explorer and Silverlight application

Internet Explorer and Silverlight application

Create the Lync Silverlight Controls application

To create the application, use Visual Studio to open a new project by using the Lync Silverlight Application template, and then drag three controls onto the Design pane.

  1. On the Windows 8 Start Screen, click Visual Studio.

  2. In Visual Studio, use the Lync Silverlight Application template to create an application.

  3. In the XAML pane, delete the XAML text between the two StackPanel elements.

  4. Set the following StackPanel attributes.

    • Orientation='Vertical'

    • HorizontalAlignment='Left'

    • VerticalAlignment='Top'

  5. Add attributes for Height and Width, and then set both to 300.

  6. In the Visual Studio Toolbox, in the Lync 2013 SDK Controls tab, drag the MyStatusArea control onto the Design pane. Position the control in the upper-left corner of the Design pane.

  7. Drag the ContactSearch control onto the Design pane. Position the control under the MyStatusArea control on the Design pane.

  8. Drag the ContactList control onto the Design pane. Position the control under the ContactSearch control on the Design pane. This creates the XAML code in the following example.

    <UserControl x:Class="LyncSilverlightApplication.MainPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:controls="clr-namespace:Microsoft.Lync.Controls;assembly=Microsoft.Lync.Controls"
        mc:Ignorable="d">
            <Grid x:Name="LayoutRoot">
            <StackPanel Width="300" Height="300" Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top">
                <controls:MyStatusArea/>
                <controls:ContactSearch/>
                <controls:ContactList Height="102"/>
            </StackPanel>
        </Grid>
    </UserControl>
    
  9. Press F5 to build and run the application.

  10. Before you start the next procedure, close the application.

Open the application

  1. On the Windows 8 desktop, start Internet Explorer.

  2. In the browser history, click the Silverlight application that was created in the previous procedure.

Conclusion

Using the Lync 2013 SDK to create a Lync Silverlight Controls application for Windows 8 resembles creating a Windows 7 application. Like Silverlight applications in earleir versions of Windows, it's possible to start a Windows 8 Silverlight application from the browser history list.

See also