MyStatusArea Control

Use the MyStatusArea control in Microsoft Lync 2010 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

Notable MyStatusArea control public properties that are related to unified communications appear in the following table. For more information, see Lync 2010 Class Libraries References.

Property

Description

DisplayName

Gets the display name of the currently logged in user.

Location

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

Model

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

AvailabilityState

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

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

PhotoDisplayMode

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

  • Hidden

  • Large

  • Small

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

<StackPanel>
  <controls:MyStatusArea PhotoDisplayMode=”Small”/>
</StackPanel>

Show: