<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Lync by Lync</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/lync_by_lync/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/lync_by_lync/feed.xml</link>
    <description>Making the most of the Lync Client Platform SDK</description>
    <lastBuildDate>Wed, 17 Apr 2019 04:21:35 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Customizing Lync Controls</title>
      <link>https://docs.microsoft.com/archive/blogs/lync_by_lync/customizing-lync-controls</link>
      <pubDate>Mon, 22 Nov 2010 12:42:19 GMT</pubDate>
      <dc:creator><![CDATA[ScottHuddleston]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lync_by_lync/2010/11/22/customizing-lync-controls/</guid>
      <description><![CDATA[The Lync controls were designed to mimic the look and feel of the Lync desktop client interface....]]></description>
      <content:encoded><![CDATA[<p>The Lync controls were designed to mimic the look and feel of the Lync desktop client interface. This feature makes it very easy to integrate Lync functionality into your website or application with very little additional work. However, there are times when the exact interface presented by Lync does not match the requirements of your application. In these scenarios, you will want to customize the appearance of the controls. Luckily, this capability is also built-in, and it is quite easy to do. </p>  <p>There are 3 primary methods by which you can perform customization: </p>  <p>1. <strong>Content Controls</strong>: The &quot;start modality&quot; buttons will display the default icon for their respective feature if no content is specified. However, you can provide an arbitrary framework element as the child of one of these controls to modify this behavior. </p>  <p>2. <strong>Restyling</strong>: Many aspects of the controls styling can be customized simply by changing the corresponding properties on the control. For example, you can change the background color or border thickness by simply specifying a new value. </p>  <p>3. <strong>Retemplating</strong>: This is the most extreme form of customization, in which you completely replace the user interface of the control with a new template of your choosing. This process is best performed using Microsoft Expression Blend, which facilitates extraction of the existing template to use as a starting point. </p>  <p>We will show simple examples for the first 2 of these techniques in this blog post, and cover advanced retemplating topics in the next post.</p>  <h2>Customizing a content control</h2>  <p>There are a variety of controls in the Lync SDK which end with the word “Button”:</p>  <ul>   <li>StartVideoCallButton</li>    <li>ScheduleMeetingButton</li>    <li>StartAudioCallButton</li>    <li>SendEmailButton</li>    <li>SendFileButton</li>    <li>ShareDesktopButton</li> </ul>  <p>The naming of these controls is a bit confusing.&#160; The classes themselves don’t actually extend from the Button class.&#160; Instead, the <em>template</em> of each of these controls <em>contains</em> a Button.&#160; And as you may already know, a Button is a <strong>ContentControl</strong> class.&#160; Elements of this type support a single piece of content which defines their template.&#160; The content you provide can be as simple as a text string, or as complex as a grid containing a rich layout of numerous elements.&#160; </p>  <p>By default, if you do not define any content for these controls, they will render a toolbar-sized icon which matches the corresponding UI element is the Lync client. This is accomplished internally by defining a <strong>Binding.TargetNullValue</strong> for the <strong>Content</strong> property of the button.&#160; But you can easily override the default content by specifying any non-null value for the content.&#160; When you do, the UI of the button will be replaced with the framework element of your choosing.&#160; </p>  <p>In some cases, the UI is rendered with a special SplitButton control which shows a drop-down menu on the right side, and a button on the left.&#160; In these situations, the content you provide will be used to define the template of the left-hand-side of the control only.&#160; The drop-down menu functionality will be preserved.&#160; </p>  <p>Here is a simple example of how to customize the display of a StartAudioCallButton using this technique:</p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font face="Consolas"><font color="#008000" size="1">&lt;!-- Plain call button --&gt;</font></font></span><span style="font-family: "></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><font face="Consolas"><font size="1"><span style="font-family: "><font color="#0000ff">&lt;</font></span><span style="font-family: "><font color="#a31515">controls</font></span><span style="font-family: "><font color="#0000ff">:</font></span><span style="font-family: "><font color="#a31515">StartAudioCallButton</font></span></font></font></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font face="Consolas"><font size="1"><span style="mso-spacerun: yes">&#160;&#160; </span><span><font color="#ff0000"><span style="mso-spacerun: yes">&#160;</span>Source</font></span><span><font color="#0000ff">=&quot;sip:schuddle@microsoft.com&quot;/&gt;</font></span></font></font></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font size="1" face="Consolas">&#160;</font></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font face="Consolas"><font color="#008000" size="1">&lt;!-- Call button custom content --&gt;</font></font></span><span style="font-family: "></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><font face="Consolas"><font size="1"><span style="font-family: "><font color="#0000ff">&lt;</font></span><span style="font-family: "><font color="#a31515">controls</font></span><span style="font-family: "><font color="#0000ff">:</font></span><span style="font-family: "><font color="#a31515">StartAudioCallButton</font></span><span style="font-family: "> </span></font></font></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font face="Consolas"><font size="1"><span style="mso-spacerun: yes">&#160;&#160; </span><span><font color="#ff0000"><span style="mso-spacerun: yes">&#160;</span>x</font></span><span><font color="#0000ff">:</font></span><span><font color="#ff0000">Name</font></span><span><font color="#0000ff">=&quot;callButton&quot;</font></span></font></font></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font face="Consolas"><font size="1"><span style="mso-spacerun: yes">&#160;&#160; </span><span><font color="#ff0000"><span style="mso-spacerun: yes">&#160;</span>Source</font></span><span><font color="#0000ff">=&quot;sip:schuddle@microsoft.com&quot;&gt;</font></span></font></font></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><font size="1"><font face="Consolas"><span style="font-family: "><span style="mso-spacerun: yes"><font color="#a31515">&#160;&#160;&#160; </font></span></span><span style="font-family: "><font color="#0000ff">&lt;</font></span><span style="font-family: "><font color="#a31515">StackPanel</font></span><span style="font-family: "><font color="#ff0000"> Orientation</font></span><span style="font-family: "><font color="#0000ff">=&quot;Horizontal&quot;&gt;</font></span></font><span style="font-family: "></span></font></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><font size="1"><font face="Consolas"><span style="font-family: "><span style="mso-spacerun: yes"><font color="#a31515">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </font></span></span><span style="font-family: "><font color="#0000ff">&lt;</font></span><span style="font-family: "><font color="#a31515">TextBlock</font></span><span style="font-family: "><font color="#ff0000"> Text</font></span><span style="font-family: "><font color="#0000ff">=&quot;Call &quot;/&gt;</font></span></font><span style="font-family: "></span></font></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><font size="1"><font face="Consolas"><span style="font-family: "><span style="mso-spacerun: yes"><font color="#a31515">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </font></span></span><span style="font-family: "><font color="#0000ff">&lt;</font></span><span style="font-family: "><font color="#a31515">TextBlock</font></span><span style="font-family: "><font color="#ff0000"> Text</font></span><span style="font-family: "><font color="#0000ff">=&quot;{</font></span><span style="font-family: "><font color="#a31515">Binding</font></span><span style="font-family: "><font color="#ff0000"> ElementName</font></span><span style="font-family: "><font color="#0000ff">=callButton,</font></span><span style="font-family: "><font color="#ff0000">Path</font></span><span style="font-family: "><font color="#0000ff">=DisplayName}&quot;/&gt;</font></span></font><span style="font-family: "></span></font></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><font size="1"><font face="Consolas"><span style="font-family: "><span style="mso-spacerun: yes"><font color="#a31515">&#160;&#160;&#160; </font></span></span><span style="font-family: "><font color="#0000ff">&lt;/</font></span><span style="font-family: "><font color="#a31515">StackPanel</font></span><span style="font-family: "><font color="#0000ff">&gt;</font></span></font><span style="font-family: "></span></font></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><font face="Consolas"><font size="1"><span style="font-family: "><font color="#0000ff">&lt;/</font></span><span style="font-family: "><font color="#a31515">controls</font></span><span style="font-family: "><font color="#0000ff">:</font></span><span style="font-family: "><font color="#a31515">StartAudioCallButton</font></span><span style="font-family: "><font color="#0000ff">&gt;</font></span></font></font><span style="font-family: "></span></p>  <p>As you can see, the first button control is defined with no content.&#160; But the second button defines a StackPanel element with 2 nested TextBlocks as the content of the button class.&#160; When you run this code, the net effect looks something like this:</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/98/metablogapi/2364.image_0FB08793.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-98-metablogapi/2364.image_5F00_0FB08793.png"><img style="display: inline" title="image" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/98/metablogapi/1781.image_thumb_170C4740.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-98-metablogapi/1781.image_5F00_thumb_5F00_170C4740.png" width="215" height="61" /></a></p>  <h2>Restyling a Lync Control</h2>  <p>Another really easy way to customize the content of a Lync control is by applying a custom style.&#160; There are many common properties which you can control that are template bound, and do not require any complex configuration to use.&#160; The complete list of properties which support restyling can be found in the SDK documentation, under the topic <strong>Properties That Support Restyling.&#160; </strong>For a simple example of what you can do with some of these properties, consider the XAML for these two ContactCard controls:</p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font face="Consolas"><font style="font-size: 9.5pt" color="#008000">&lt;!-- Plain contact card --&gt;</font></font></span><span style="font-family: "></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><font face="Consolas"><span style="font-family: "><font color="#0000ff"><font style="font-size: 9.5pt">&lt;</font></font></span><font style="font-size: 9.5pt"><span style="font-family: "><font color="#a31515">controls</font></span><span style="font-family: "><font color="#0000ff">:</font></span><span style="font-family: "><font color="#a31515">ContactCard</font></span><span style="font-family: "><font color="#ff0000"> Margin</font></span></font><span style="font-family: "><font style="font-size: 9.5pt" color="#0000ff">=&quot;10&quot;</font></span></font><span style="font-family: "></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font face="Consolas"><span style="mso-spacerun: yes"><font style="font-size: 9.5pt">&#160;&#160; </font></span><font style="font-size: 9.5pt"><span><font color="#ff0000"><span style="mso-spacerun: yes">&#160;</span>Source</font></span></font><span><font style="font-size: 9.5pt" color="#0000ff">=&quot;schuddle@microsoft.com&quot; /&gt;</font></span></font></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font face="Consolas"><font style="font-size: 9.5pt">&#160;</font></font></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font face="Consolas"><font style="font-size: 9.5pt" color="#008000">&lt;!— Contact card with styles applied --&gt;</font></font></span><span style="font-family: "></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><font face="Consolas"><span style="font-family: "><font color="#0000ff"><font style="font-size: 9.5pt">&lt;</font></font></span><font style="font-size: 9.5pt"><span style="font-family: "><font color="#a31515">controls</font></span><span style="font-family: "><font color="#0000ff">:</font></span><span style="font-family: "><font color="#a31515">ContactCard</font></span><span style="font-family: "><font color="#ff0000"> Margin</font></span></font><span style="font-family: "><font style="font-size: 9.5pt" color="#0000ff">=&quot;10&quot;</font></span></font><span style="font-family: "></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font face="Consolas"><span style="mso-spacerun: yes"><font style="font-size: 9.5pt">&#160;&#160; </font></span><font style="font-size: 9.5pt"><span><font color="#ff0000"><span style="mso-spacerun: yes">&#160;</span>Source</font></span><span><font color="#0000ff">=&quot;schuddle@microsoft.com&quot;</font></span> </font></font></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font face="Consolas"><span style="mso-spacerun: yes"><font style="font-size: 9.5pt">&#160;&#160; </font></span><font style="font-size: 9.5pt"><span><font color="#ff0000"><span style="mso-spacerun: yes">&#160;</span>Background</font></span></font><span><font style="font-size: 9.5pt" color="#0000ff">=&quot;LightSteelBlue&quot;</font></span></font></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font face="Consolas"><span style="mso-spacerun: yes"><font style="font-size: 9.5pt">&#160;&#160; </font></span><font style="font-size: 9.5pt"><span><font color="#ff0000"><span style="mso-spacerun: yes">&#160;</span>BorderBrush</font></span></font><span><font style="font-size: 9.5pt" color="#0000ff">=&quot;DarkBlue&quot;</font></span></font></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font face="Consolas"><span style="mso-spacerun: yes"><font style="font-size: 9.5pt">&#160;&#160; </font></span><font style="font-size: 9.5pt"><span><font color="#ff0000"><span style="mso-spacerun: yes">&#160;</span>BorderThickness</font></span></font><span><font style="font-size: 9.5pt" color="#0000ff">=&quot;5&quot;</font></span></font></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font face="Consolas"><span style="mso-spacerun: yes"><font style="font-size: 9.5pt">&#160;&#160; </font></span><font style="font-size: 9.5pt"><span><font color="#ff0000"><span style="mso-spacerun: yes">&#160;</span>FontFamily</font></span></font><span><font style="font-size: 9.5pt" color="#0000ff">=&quot;Century Schoolbook&quot;</font></span></font></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font face="Consolas"><span style="mso-spacerun: yes"><font style="font-size: 9.5pt">&#160;&#160; </font></span><font style="font-size: 9.5pt"><span><font color="#ff0000"><span style="mso-spacerun: yes">&#160;</span>FontWeight</font></span></font><span><font style="font-size: 9.5pt" color="#0000ff">=&quot;Bold&quot;</font></span></font></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: "><font face="Consolas"><font style="font-size: 9.5pt" color="#0000ff">/&gt;</font></font></span><span style="font-family: "></span></p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal"><span style="font-family: ; mso-no-proof: yes"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/98/metablogapi/4571.clip_image0024_34DD16F6.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-98-metablogapi/4571.clip_5F00_image0024_5F00_34DD16F6.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="clip_image002[4]" border="0" alt="clip_image002[4]" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/98/metablogapi/7624.clip_image0024_thumb_423F15FD.jpg" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-98-metablogapi/7624.clip_5F00_image0024_5F00_thumb_5F00_423F15FD.jpg" width="757" height="176" /></a>      <br /></span>    <br />As you can see from these examples, there are many aspects of the control appearance which can be modified without the need for any complex coding at all.</p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal">&#160;</p>  <p style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt; mso-layout-grid-align: none" class="MsoNormal">In the next post, we will explore more radical methods for altering the appearance of Lync controls, which permit us to dramatically change their user interface and behavior.</p>]]></content:encoded>
    </item>
    <item>
      <title>Using the Search Controls</title>
      <link>https://docs.microsoft.com/archive/blogs/lync_by_lync/using-the-search-controls</link>
      <pubDate>Thu, 07 Oct 2010 15:59:16 GMT</pubDate>
      <dc:creator><![CDATA[ScottHuddleston]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lync_by_lync/2010/10/07/using-the-search-controls/</guid>
      <description><![CDATA[In our last post, we introduced the Lync Controls SDK, and demonstrated how easy it is to create a...]]></description>
      <content:encoded><![CDATA[<p>In our last post, we introduced the Lync Controls SDK, and demonstrated how easy it is to create a simple application using these controls to show a contact card. Now, we will explore the search functionality provided by this SDK, and use it to build another simple application.</p>
<p>Begin by creating and opening a Visual Studio project using one of the Lync templates which were installed by the SDK installer. Refer to the previous <a href="https://blogs.msdn.com/b/lync_by_lync/archive/2010/10/07/hello-lync.aspx">Hello, Lync</a> post for details on how to get started with a new project. <i>Note: In the sample code snippets shown below, we will use the XML namespace &ldquo;controls&rdquo; to refer to the Microsoft.Lync.Controls assembly which you must reference at the top of each XAML source file.</i></p>
<h4>Introducing the search controls</h4>
<p>The easiest way to add search functionality to your application is by using the <b>ContactSearch</b> control. This control adds a search input box and a search result list as a single unit, arranged vertically just as they are in the Lync user interface. However, you can also add these components separately to your application, and retain control over the layout of the individual components. To add search features to your application search features in this manner, you must use a pair of interrelated controls: <b>ContactSearchInputBox</b> and <b>ContactSearchResultList</b>.</p>
<p>The <b>ContactSearchInputBox</b> control provides a user interface for entering search criteria and executing a search. It provides both name and keyword search features, and is designed to mimic the user interface of Microsoft Lync. The <b>ContactSearchResultList</b> control provides a user interface for displaying the results of your search, as well as metadata about the status of the search operation.</p>
<p>To use these controls, you must first add them to your application. You can place these controls separately anywhere on the window. We will place the results on top in this example:</p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-family: "><span style="color: #a31515;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 9.5pt;"><span style="font-family: "><span style="color: #0000ff;">&lt;</span></span><span style="font-family: "><span style="color: #a31515;">Grid</span></span></span><span style="font-family: "><span style="color: #0000ff; font-size: 9.5pt;">&gt;</span></span></span><span style="font-family: "></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-family: "><span style="color: #a31515;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 9.5pt;"><span style="font-family: "><span style="color: #0000ff;">&lt;</span></span><span style="font-family: "><span style="color: #a31515;">Grid.RowDefinitions</span></span></span><span style="font-family: "><span style="color: #0000ff; font-size: 9.5pt;">&gt;</span></span></span><span style="font-family: "></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-family: "><span style="color: #a31515;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 9.5pt;"><span style="font-family: "><span style="color: #0000ff;">&lt;</span></span><span style="font-family: "><span style="color: #a31515;">RowDefinition</span></span><span style="font-family: "><span style="color: #ff0000;"> Height</span></span></span><span style="font-family: "><span style="color: #0000ff; font-size: 9.5pt;">="*"/&gt;</span></span></span><span style="font-family: "></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-family: "><span style="color: #a31515;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 9.5pt;"><span style="font-family: "><span style="color: #0000ff;">&lt;</span></span><span style="font-family: "><span style="color: #a31515;">RowDefinition</span></span><span style="font-family: "><span style="color: #ff0000;"> Height</span></span></span><span style="font-family: "><span style="color: #0000ff; font-size: 9.5pt;">="Auto"/&gt;</span></span></span><span style="font-family: "></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-family: "><span style="color: #a31515;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 9.5pt;"><span style="font-family: "><span style="color: #0000ff;">&lt;/</span></span><span style="font-family: "><span style="color: #a31515;">Grid.RowDefinitions</span></span></span><span style="font-family: "><span style="color: #0000ff; font-size: 9.5pt;">&gt;</span></span></span><span style="font-family: "></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-family: "><span style="color: #a31515;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 9.5pt;"><span style="font-family: "><span style="color: #0000ff;">&lt;</span></span><span style="font-family: "><span style="color: #a31515;">controls</span></span><span style="font-family: "><span style="color: #0000ff;">:</span></span><span style="font-family: "><span style="color: #a31515;">ContactSearchResultList</span></span><span style="font-family: "><span style="color: #ff0000;"> Grid.Row</span></span></span><span style="font-family: "><span style="color: #0000ff; font-size: 9.5pt;">="0"/&gt;</span></span></span><span style="font-family: "></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-family: "><span style="color: #a31515;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 9.5pt;"><span style="font-family: "><span style="color: #0000ff;">&lt;</span></span><span style="font-family: "><span style="color: #a31515;">controls</span></span><span style="font-family: "><span style="color: #0000ff;">:</span></span><span style="font-family: "><span style="color: #a31515;">ContactSearchInputBox</span></span><span style="font-family: "><span style="color: #ff0000;"> Grid.Row</span></span></span><span style="font-family: "><span style="color: #0000ff; font-size: 9.5pt;">="1"/&gt;</span></span></span><span style="font-family: "></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-family: "><span style="color: #a31515;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 9.5pt;"><span style="font-family: "><span style="color: #0000ff;">&lt;/</span></span><span style="font-family: "><span style="color: #a31515;">Grid</span></span></span><span style="font-family: "><span style="color: #0000ff; font-size: 9.5pt;">&gt; <br /></span></span></span></p>
<h4>Binding the search controls to each other</h4>
<p>We&rsquo;re not done yet! The above code sample will not work as expected. The reason for this is that the <b>ContactSearchResultList</b> control is not connected to the <b>ContactSearchInputBox</b> control which performs the search operation.</p>
<p>In order to make them work together, we will need to add a little bit more code. The <b>ContactSearchInputBox</b> control has a dependency property called <b><i>Results</i></b> which contains the output of the search operation. It also supports a dependency property called <b><i>SearchState</i></b> which provides feedback on the status of the search operation. To make the <b>ContactSearchResultList</b> control display this output, we must bind the two controls together. The full code looks something like this:</p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-family: "><span style="color: #a31515;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 9.5pt;"><span style="font-family: "><span style="color: #0000ff;">&lt;</span></span><span style="font-family: "><span style="color: #a31515;">Grid</span></span></span><span style="font-family: "><span style="color: #0000ff; font-size: 9.5pt;">&gt;</span></span></span><span style="font-family: "></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-family: "><span style="color: #a31515;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 9.5pt;"><span style="font-family: "><span style="color: #0000ff;">&lt;</span></span><span style="font-family: "><span style="color: #a31515;">Grid.RowDefinitions</span></span></span><span style="font-family: "><span style="color: #0000ff; font-size: 9.5pt;">&gt;</span></span></span><span style="font-family: "></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-family: "><span style="color: #a31515;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 9.5pt;"><span style="font-family: "><span style="color: #0000ff;">&lt;</span></span><span style="font-family: "><span style="color: #a31515;">RowDefinition</span></span><span style="font-family: "><span style="color: #ff0000;"> Height</span></span></span><span style="font-family: "><span style="color: #0000ff; font-size: 9.5pt;">="*"/&gt;</span></span></span><span style="font-family: "></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-family: "><span style="color: #a31515;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 9.5pt;"><span style="font-family: "><span style="color: #0000ff;">&lt;</span></span><span style="font-family: "><span style="color: #a31515;">RowDefinition</span></span><span style="font-family: "><span style="color: #ff0000;"> Height</span></span></span><span style="font-family: "><span style="color: #0000ff; font-size: 9.5pt;">="Auto"/&gt;</span></span></span><span style="font-family: "></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-family: "><span style="color: #a31515;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 9.5pt;"><span style="font-family: "><span style="color: #0000ff;">&lt;/</span></span><span style="font-family: "><span style="color: #a31515;">Grid.RowDefinitions</span></span></span><span style="font-family: "><span style="color: #0000ff; font-size: 9.5pt;">&gt;</span></span></span><span style="font-family: "></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-family: "><span style="color: #a31515;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 9.5pt;"><span style="font-family: "><span style="color: #0000ff;">&lt;</span></span><span style="font-family: "><span style="color: #a31515;">controls</span></span><span style="font-family: "><span style="color: #0000ff;">:</span></span><span style="font-family: "><span style="color: #a31515;">ContactSearchResultList</span></span><span style="font-family: "><span style="color: #ff0000;"> Grid.Row</span></span></span><span style="font-family: "><span style="color: #0000ff; font-size: 9.5pt;">="0"</span></span></span><span style="font-family: "></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: "><span style="font-family: Consolas;"><span style="color: #000000;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 9.5pt;"><span><span style="color: #ff0000;">ItemsSource</span></span><span><span style="color: #0000ff;">="{</span></span><span><span style="color: #a31515;">Binding</span></span><span><span style="color: #ff0000;"> Results</span></span><span><span style="color: #0000ff;">,</span></span><span><span style="color: #ff0000;"> ElementName</span></span><span><span style="color: #0000ff;">=searchInput,</span></span><span><span style="color: #ff0000;"> Mode</span></span></span><span><span style="color: #0000ff; font-size: 9.5pt;">=OneWay}"</span></span></span></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: "><span style="font-family: Consolas;"><span style="color: #000000;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 9.5pt;"><span><span style="color: #ff0000;">ResultsState</span></span><span><span style="color: #0000ff;">="{</span></span><span><span style="color: #a31515;">Binding</span></span><span><span style="color: #ff0000;"> SearchState</span></span><span><span style="color: #0000ff;">,</span></span><span><span style="color: #ff0000;"> ElementName</span></span><span><span style="color: #0000ff;">=searchInput,</span></span><span><span style="color: #ff0000;"> Mode</span></span></span><span><span style="color: #0000ff; font-size: 9.5pt;">=OneWay}"</span></span></span></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: "><span style="font-family: Consolas;"><span style="color: #000000;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span><span style="color: #0000ff; font-size: 9.5pt;">/&gt;</span></span></span></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-family: "><span style="color: #a31515;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 9.5pt;"><span style="font-family: "><span style="color: #0000ff;">&lt;</span></span><span style="font-family: "><span style="color: #a31515;">controls</span></span><span style="font-family: "><span style="color: #0000ff;">:</span></span><span style="font-family: "><span style="color: #a31515;">ContactSearchInputBox</span></span><span style="font-family: "><span style="color: #ff0000;"> Grid.Row</span></span><span style="font-family: "><span style="color: #0000ff;">="1"</span></span><span style="font-family: "><span style="color: #ff0000;"> x</span></span><span style="font-family: "><span style="color: #0000ff;">:</span></span><span style="font-family: "><span style="color: #ff0000;">Name</span></span></span><span style="font-family: "><span style="color: #0000ff; font-size: 9.5pt;">="searchInput"/&gt;</span></span></span><span style="font-family: "></span></p>
<p class="MsoNormal" style="line-height: normal; list-style-type: disc; margin: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-family: "><span style="color: #a31515;"><span style="font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 9.5pt;"><span style="font-family: "><span style="color: #0000ff;">&lt;/</span></span><span style="font-family: "><span style="color: #a31515;">Grid</span></span></span><span style="font-family: "><span style="color: #0000ff; font-size: 9.5pt;">&gt;</span></span></span></p>
<p>If you run the code now, you will see a familiar interface which provides a rich set of search features to your application.</p>
<p>&nbsp;<img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/98/7635.2010-10-07%20using%20search.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-98/7635.2010_2D00_10_2D00_07-using-search.jpg" border="0" /></p>
<p>In our next post, we will explore how to customize the display of search results by retemplating a control.</p>]]></content:encoded>
    </item>
    <item>
      <title>Hello, Lync!</title>
      <link>https://docs.microsoft.com/archive/blogs/lync_by_lync/hello-lync</link>
      <pubDate>Thu, 07 Oct 2010 11:29:47 GMT</pubDate>
      <dc:creator><![CDATA[ScottHuddleston]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lync_by_lync/2010/10/07/hello-lync/</guid>
      <description><![CDATA[Getting started with Lync controls is actually quite easy. In this post, we will explore the basic...]]></description>
      <content:encoded><![CDATA[<p>Getting started with Lync controls is actually quite easy. In this post, we will explore the basic steps required to create a sample application using Lync controls, and then we will run a simple &ldquo;Hello, Lync&rdquo; application which shows a presence indicator with photo.</p>
<h4>Creating your first Lync Controls project</h4>
<p>We&rsquo;ll use the WPF application libraries in this sample.</p>
<p>1. To begin, you must first install and sign in to Microsoft Lync.&nbsp; All Lync controls require a running instance of Microsoft Lync to function properly.</p>
<p>2. Next, be sure you have installed the Lync Client Platform SDK.</p>
<p>3. Open Visual Studio, and create a new project using the template <b><i><span style="background-color: #ffffff;">Lync WPF Application</span></i></b></p>
<p>4. Open the file <strong>Window1.xaml</strong></p>
<p>The template already includes some very basic XAML which instantiates a PresenceIndicator control and a TextBlock:</p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span style="font-family: Consolas;"><span><span style="color: #008000; font-size: 9.5pt;"></span></span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span style="font-family: Consolas;"><span><span style="color: #008000; font-size: 9.5pt;">&lt;!-- </span></span></span><span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span><span style="font-family: Consolas;"><span style="color: #008000; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; Show the presence indicator. Hover over the icon to see the contact card.</span></span></span><span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span><span style="font-family: Consolas;"><span style="color: #008000; font-size: 9.5pt;">&nbsp;&nbsp;&nbsp; Set Source to a valid SIP URI in your organization. </span></span></span><span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span><span style="font-family: Consolas;"><span style="color: #008000; font-size: 9.5pt;">--&gt;</span></span></span><span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-size: 9.5pt;"><span><span style="color: #0000ff;">&lt;</span></span><span><span style="color: #a31515;">controls</span></span><span><span style="color: #0000ff;">:</span></span><span><span style="color: #a31515;">PresenceIndicator</span></span></span><span><span style="color: #000000; font-size: 9.5pt;"> </span></span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span><span style="font-family: Consolas;"><span style="font-size: 9.5pt;"><span><span style="color: #ff0000;">&nbsp;&nbsp;&nbsp; x</span></span><span><span style="color: #0000ff;">:</span></span><span><span style="color: #ff0000;">Name</span></span><span><span style="color: #0000ff;">="Presence"</span></span><span style="color: #000000;"> </span></span></span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span><span style="font-family: Consolas;"><span style="font-size: 9.5pt;"><span><span style="color: #ff0000;">&nbsp;&nbsp;&nbsp; Source</span></span><span><span style="color: #0000ff;">="</span><a href="mailto:john@contoso.com" style="CURSOR: auto"><span style="text-decoration: underline;"><span style="color: #0000ff;">sip:john@contoso.com</span></span></a><span style="color: #0000ff;">"</span></span><span style="color: #000000;"> </span></span></span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span><span style="font-family: Consolas;"><span style="font-size: 9.5pt;"><span><span style="color: #ff0000;">&nbsp;&nbsp;&nbsp; PhotoDisplayMode</span></span><span><span style="color: #0000ff;">="Large"</span></span><span style="color: #000000;"> </span></span></span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span><span style="font-family: Consolas;"><span><span style="color: #0000ff; font-size: 9.5pt;">/&gt; <br /></span></span></span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span style="font-family: Consolas;"><span><span style="color: #008000; font-size: 9.5pt;">&lt;!-- Use the DisplayName property from PresenceIndicator to show the user's name --&gt;</span></span></span><span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-size: 9.5pt;"><span><span style="color: #0000ff;">&lt;</span></span><span><span style="color: #a31515;">TextBlock</span></span></span><span><span style="color: #000000; font-size: 9.5pt;"> </span></span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span><span style="font-family: Consolas;"><span style="font-size: 9.5pt;"><span><span style="color: #ff0000;">&nbsp;&nbsp;&nbsp; Text</span></span><span><span style="color: #0000ff;">="{</span></span><span><span style="color: #a31515;">Binding</span></span><span><span style="color: #ff0000;"> DisplayName</span></span><span><span style="color: #0000ff;">,</span></span><span><span style="color: #ff0000;"> ElementName</span></span><span><span style="color: #0000ff;">=Presence}"</span></span><span style="color: #000000;"> </span></span></span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span><span style="font-family: Consolas;"><span style="font-size: 9.5pt;"><span><span style="color: #ff0000;">&nbsp;&nbsp;&nbsp; Margin</span></span><span><span style="color: #0000ff;">="4,0,0,0"</span></span><span style="color: #000000;"> </span></span></span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span><span style="font-family: Consolas;"><span style="font-size: 9.5pt;"><span><span style="color: #ff0000;">&nbsp;&nbsp;&nbsp; VerticalAlignment</span></span></span><span><span style="color: #0000ff; font-size: 9.5pt;">="Center"</span></span></span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span><span style="font-family: Consolas;"><span><span style="color: #0000ff; font-size: 9.5pt;">/&gt;</span></span></span></span></p>
<p>If you run the application at this point, you are very likely to see the result &ldquo;Unknown Contact&rdquo; in the text block, along with the default silhouette image and grey presence bar.&nbsp; This is because we have not yet selected a valid contact. </p>
<h4>Connecting your control to a source of data</h4>
<p>All Lync Controls which operate on a single contact support a property called <b>Source</b> which is used to tell the control which contact should be displayed. The <b>Source</b> property accepts any string, and the control will search for a contact matching that string. While this behavior is very robust, it tends to yield inconsistent results. A search for a string such as &ldquo;Joe&rdquo; or &ldquo;Mary&rdquo; in an organization of any non-trivial size is likely to return more than one result, and the one which gets returned first is the one which your control will display.</p>
<p>You can make the control behave in a more deterministic fashion by giving it more specific source criteria. One option is to use the Lync API to find a Contact object which meets your needs, and pass that object to the <strong>Source</strong> of your control in the code-behind; but using that API adds some complexity to your code which isn&rsquo;t necessary for most applications. A simpler option, which works very well, is to specify the SIP URI value for the contact you wish to use. In fact, if you provide a SIP URI and be sure to prefix it with the string <a href="https://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/sip:"><span style="color: #0066dd;">sip:</span></a>, the Lync Control will load your contact much more quickly, because it does not perform a search. Instead, it simply asks the server for the specific contact you are requesting, based on an exact match of the specified SIP URI.</p>
<p>You can easily view a user&rsquo;s SIP URI in Lync by simply unchecking the option &ldquo;Show Friendly Name&rdquo; in the contact list options menu which appears on the right hand side of the contact list toolbar. Once you know the SIP URI of the contact you wish to display, you can wire up your application: </p>
<p>6. Edit the XAML for your new window, and edit the <strong>Source</strong> property on your presence indicator. For this example, <em><strong>use your own SIP URI</strong></em>.&nbsp; The XAML will look something like this:</p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span style="font-family: Consolas;"><span style="font-size: 9.5pt;"><span><span style="color: #0000ff;">&lt;</span></span><span><span style="color: #a31515;">controls</span></span><span><span style="color: #0000ff;">:</span></span><span><span style="color: #a31515;">PresenceIndicator</span></span></span><span><span style="color: #000000; font-size: 9.5pt;"> </span></span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span><span style="font-family: Consolas;"><span style="font-size: 9.5pt;"><span><span style="color: #ff0000;">&nbsp;&nbsp;&nbsp; x</span></span><span><span style="color: #0000ff;">:</span></span><span><span style="color: #ff0000;">Name</span></span><span><span style="color: #0000ff;">="Presence"</span></span><span style="color: #000000;"> </span></span></span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span><span style="font-family: Consolas;"><span style="font-size: 9.5pt;"><span><span style="color: #ff0000;">&nbsp;&nbsp;&nbsp; Source</span></span><span><span style="color: #0000ff;">="</span><a href="mailto:schuddle@microsoft.com" style="CURSOR: auto"><span style="text-decoration: underline;"><span style="color: #0000ff;">sip:schuddle@microsoft.com</span></span></a><span style="color: #0000ff;">"</span></span><span style="color: #000000;"> </span></span></span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span><span style="font-family: Consolas;"><span style="font-size: 9.5pt;"><span><span style="color: #ff0000;">&nbsp;&nbsp;&nbsp; PhotoDisplayMode</span></span><span><span style="color: #0000ff;">="Large"</span></span><span style="color: #000000;"> </span></span></span></span></p>
<p class="MsoNormal" style="LINE-HEIGHT: normal; LIST-STYLE-TYPE: disc; MARGIN: 0in 0in 0pt"><span><span style="font-family: Consolas;"><span><span style="color: #0000ff; font-size: 9.5pt;">/&gt; </span></span></span></span></p>
<p>Despite having assigned a valid SIP URI, the TextBlock still shows the value &ldquo;Unknown Contact&rdquo; in the design-time preview.&nbsp; Not to worry, we can leave this value alone, and let the magic of <em>binding</em> take care of that problem.&nbsp; As you can see, the Text property of our TextBlock is bound to the <strong>DisplayName</strong> of the presence control.&nbsp; This setting will automatically update at runtime when the PresenceIndicator control resolves to our selected contact.</p>
<p>Try running your application now.&nbsp; You should see something like this:</p>
<p><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/40/98/5428.lync-sample-3.jpg" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-40-98/5428.lync_2D00_sample_2D00_3.jpg" border="0" /></p>
<p><a href="file:///C:/Users/schuddle/AppData/Local/Temp/1/WindowsLiveWriter1286139640/supfiles440B7/lync-sample-3[3].jpg"></a></p>
<p>And, you&rsquo;re done! Congratulations, you have just created your first application using the new Lync Client Platform SDK.</p>
<p>As you have seen, it is really very simple to add Unified Communications functionality into your applications. But there is much more you can do with these controls once you are familiar with the basic interface they support. In our next post, we will explore the contact search controls, and how they can be used to integrate Lync&rsquo;s powerful search feature into your application.</p>]]></content:encoded>
    </item>
    <item>
      <title>What are Lync Controls?</title>
      <link>https://docs.microsoft.com/archive/blogs/lync_by_lync/what-are-lync-controls</link>
      <pubDate>Mon, 04 Oct 2010 17:41:05 GMT</pubDate>
      <dc:creator><![CDATA[ScottHuddleston]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lync_by_lync/2010/10/04/what-are-lync-controls/</guid>
      <description><![CDATA[Some of the most exciting features included with the Lync Client Platform SDK are the new user...]]></description>
      <content:encoded><![CDATA[<p>Some of the most exciting features included with the Lync Client Platform SDK are the new user interface controls for WPF and Silverlight.&#160; These controls enable many of the most commonly accessed features of Lync to be embedded, quickly and easily, in line of business applications.&#160; Connectivity is a snap, because all of these controls rely upon a running instance of Lync to be present on the user’s desktop.&#160; The controls establish their connection with Lync automatically, and require no special configuration by the developer or user of the application.</p>  <p>The controls ship with a default look-and-feel which emulates the behavior of the Lync desktop client, but like any other WPF or Silverlight control, they can be customized extensively by either restyling or retemplating.&#160; We’ll discuss the customization of these controls more in a future post, but lets begin by introducing the controls:</p>  <table border="1" cellspacing="0" cellpadding="3" width="716"><tbody>     <tr>       <td valign="top" width="183">         <p style="margin-right: 0px" dir="ltr"><strong>ContactCard</strong></p>       </td>        <td valign="top" width="531"><i>A simple control which displays the presence, photo, and contact information about any user.&#160; Information is displayed in the format of a business card, with a set of buttons across the bottom which enable the user to initiate a conversation by email, IM, voice, and various other modalities.&#160; Similar to the popup contact cards in the Lync client, this card can be expanded to show a set of tabs which display additional information about the contact and his organization.</i></td>     </tr>      <tr>       <td valign="top" width="183">         <p style="margin-right: 0px" dir="ltr"><strong>ContactList</strong></p>       </td>        <td valign="top" width="531"><i>Displays the user’s saved contacts and groups, just like Lync does, including the ability to sort by Groups, Status, or Relationship</i></td>     </tr>      <tr>       <td valign="top" width="183"><strong>ContactSearch</strong>           <br /><strong>ContactSearchInputBox</strong>           <br /><strong>ContactSearchResultList</strong></td>        <td valign="top" width="531"><em>A set of controls which enable searching for contacts by Name or Skill.&#160; The ContactSearchInputBox and ContactSearchResultList are designed to allow separate placement of the search user interface elements on the page, whereas the ContactSearch control is an all-in-one option which displays the results in a list below the search input box, just as it appears in the Lync client.</em></td>     </tr>      <tr>       <td valign="top" width="183"><strong>CustomContactList</strong>           <br /><strong>CustomContactListItem</strong></td>        <td valign="top" width="531"><i>A simple set of controls which provide the capability to define a customizable list of contacts to display. This control offers developers the ability to customize the view for displaying results with photos, or a more compact option which only shows the name and presence. It’s perfect for use on internal team sites and portals.</i></td>     </tr>      <tr>       <td valign="top" width="183"><strong>MyStatusArea</strong>           <br /><strong>MyPresenceChooser</strong>           <br /><strong>MyNoteBox</strong></td>        <td valign="top" width="531"><em>The MyStatusArea control shows the user’s name, photo, and basic presence information, arranged in a layout similar to that seen at the top of the Lync client.&#160; It includes capabilities which allow the user to edit his presence note, or to change his current status.&#160; For more flexible layout options, these capabilities are also available separately by using the MyNoteBox and MyPresenceChooser controls, respectively.</em></td>     </tr>      <tr>       <td valign="top" width="183"><strong>PresenceIndicator</strong></td>        <td valign="top" width="531"><i>A small control which displays a color-coded presence indicator, and optionally the photo, of a specified contact.&#160; When clicked, this control shows a popup version of the contact card, which features a “quick-connect” menu of options for initiating a conversation.</i></td>     </tr>      <tr>       <td valign="top" width="183"><strong>ScheduleMeetingButton</strong>           <br /><strong>SendEmailButton</strong>           <br /><strong>SendFileButton</strong>           <br /><strong>ShareDesktopButton</strong>           <br /><strong>StartAudioCallButton</strong>           <br /><strong>StartInstantMessagingButton</strong>           <br /><strong>StartVideoCallButton</strong></td>        <td valign="top" width="531"><em>These controls enable developers to quickly embed buttons in their applications which can be used to start a conversation with a specified contact in any of the modalities indicated.&#160; When clicked, they launch Lync’s conversation window using UI automation.</em></td>     </tr>   </tbody></table>  <p>As you can see, the Lync controls enable a wide range of ready-to-use features that make it very easy for developers to integrate collaboration functionality directly within their business applications and websites.&#160; In our next post, we will present a “Hello World” sample application that demonstrates just how easy this is.</p>]]></content:encoded>
    </item>
    <item>
      <title>Introducing the Microsoft Lync Client Platform SDK</title>
      <link>https://docs.microsoft.com/archive/blogs/lync_by_lync/introducing-the-microsoft-lync-client-platform-sdk</link>
      <pubDate>Mon, 04 Oct 2010 16:01:35 GMT</pubDate>
      <dc:creator><![CDATA[ScottHuddleston]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/lync_by_lync/2010/10/04/introducing-the-microsoft-lync-client-platform-sdk/</guid>
      <description><![CDATA[Microsoft Lync is the new name for the next generation of Microsoft’s highly successful Communicator...]]></description>
      <content:encoded><![CDATA[<p>Microsoft Lync is the new name for the next generation of Microsoft’s highly successful Communicator product.&#160; The Microsoft Lync Client Platform SDK makes its debut with this release, and provides developers with a powerful set of tools for creating highly connected business applications which integrate all of Lync’s most exciting features.&#160; The SDK has two parts:</p>  <ul>   <li>A .NET API which enables a wide variety of scenarios, including audio/video/IM conversations, contact management, presence subscriptions &amp; publication, UI automation, and UI extensibility. </li>    <li>A rich set of customizable&#160; UI controls for both WPF and Silverlight which give developers the ability to easily integrate Microsoft Lync functionality into their applications. </li> </ul>  <p>The addition of this compelling new SDK to the already powerful set of managed API’s included with Lync is fantastic news for developers.&#160; This blog will be dedicated to helping developers make the most of these API’s, and the next several posts will be focused on the many new features introduced by the Lync Client Platform SDK.</p>  <p>You can download the Lync SDK from Microsoft at the following URL:</p>  <p><a title="https://www.microsoft.com/downloads/en/details.aspx?FamilyID=d98f0bf7-c82c-47f5-9f73-be3edbf30438" href="https://www.microsoft.com/downloads/en/details.aspx?FamilyID=d98f0bf7-c82c-47f5-9f73-be3edbf30438">https://www.microsoft.com/downloads/en/details.aspx?FamilyID=d98f0bf7-c82c-47f5-9f73-be3edbf30438</a></p>]]></content:encoded>
    </item>
  </channel>
</rss>