Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

Published: April 1, 2013

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

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

Provided by:  John Clarkson, Microsoft Corporation

In this article
Introduction
Creating the Lync Silverlight Controls application
Conclusion
Additional resources

Watch the video: Create a Lync Silverlight Controls application for Windows 8 and Windows 8 Pro

Videos

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 Note

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

Figure 1.

Internet Explorer and Silverlight 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.

To create the Lync Controls application

  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.

To 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.

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 is possible to start a Windows 8 Silverlight application from the browser history list.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.