Use the MyStatusArea control in Microsoft Lync Control applications to display the note string, an availability icon/photo, a textblock with the user's name, and a textblock with the user's location. It also displays the MyNoteBox and MyPresenceChooser controls together. To display these in separate locations, use MyNoteBox and MyPresenceChooser as separate controls. Clicking the presence status box displays a list of presence options, for example "Be Right Back". The user can change their presence by selecting one of these. The user can change their note string by typing in new text and pressing the Enter key.

MyStatusArea Control

Members

Notable MyStatusArea control public properties and events relating to unified communications appear in the following table. For a full list, see topics in the Lync 2010 API Class Library documentation.

Property or Event

Description

DisplayName property

Gets the display name of the currently logged in user.

Location property

Gets a string that shows the location of the currently signed in user.

Model property

Reserved for internal use. This property may appear in XAML text when editing templates. To preserve control functionality it should remain unchanged.

AvailabilityState property

Gets an enumeration value that represents the contact's availability. The type is a ContactAvailability enumeration. Possible values:

  • Invalid

  • None

  • Free

  • FreeIdle

  • Busy

  • BusyIdle

  • DoNotDisturb

  • TemporarilyAway

  • Away

  • Offline

PersonalNote property

Gets a string that shows the content of the note box for the signed-in user.

PhotoDisplayMode property

Gets or sets an enumeration value that determines the presence photo display mode. The type is a PhotoDisplayMode enumeration. Possible values:

  • Hidden

  • Large

  • Small

Code Example

The following example can be used for Microsoft Silverlight and Microsoft Windows Presentation Foundation (WPF) application development.

  Copy imageCopy Code
<StackPanel>
  <controls:MyStatusArea PhotoDisplayMode="Small"/>
</StackPanel>

See Also

Other Resources