Lync 2013: Create a Lync Silverlight Controls application for Windows 8 and Windows 8 Pro
Learn how to use the Lync 2013 SDK to create a Lync Silverlight Controls application for Windows 8 and Windows 8 Pro.
Last modified: April 30, 2013
Applies to: Lync 2013 | Lync Server 2013 | Visual Studio | Windows
Provided by: John Clarkson, Microsoft Corporation
|
In this article
|
Watch the video: 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. |
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
-
On the Windows 8 Start Screen, click Visual Studio.
-
In Visual Studio, use the Lync Silverlight Application template to create an application.
-
In the XAML pane, delete the XAML text between the two StackPanel elements.
-
Set the following StackPanel attributes.
-
Orientation='Vertical'
-
HorizontalAlignment='Left'
-
VerticalAlignment='Top'
-
-
Add attributes for Height and Width, and then set both to 300.
-
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.
-
Drag the ContactSearch control onto the Design pane. Position the control under the MyStatusArea control on the Design pane.
-
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>
-
Press F5 to build and run the application.
-
Before you start the next procedure, close the application.
To open the application
-
On the Windows 8 desktop, start Internet Explorer.
-
In the browser history, click the Silverlight application that was created in the previous procedure.
Note