Display Local User Information with Lync 2010 Controls
This topic introduces the MyStatusArea control and the MyPresenceChooser and MyNoteBox subcontrols.
Use the MyStatusArea control and the MyPresenceChooser and MyNoteBox subcontrols to let users view and change their presence status and user note.
The choice of using the MyStatusArea control or the subcontrols partly depends on whether you prefer to display the subcontrols together. The MyStatusArea control provides an easy way to display them together. To display them separately, use the subcontrols. Additionally, the MyStatusArea control includes the photo, name, and location of the currently signed-in user.
MyStatusArea Control
The MyStatusArea control displays the MyPresenceChooser and MyNoteBox subcontrols together as a single unit.
Clicking the presence status box displays a list of presence status options like Busy. The user can change their presence status by selecting one of these options. The user can change their note string by typing in new text and pressing the Enter key.
<StackPanel>
<controls:MyStatusArea PhotoDisplayMode=”Small”/>
</StackPanel>
MyPresenceChooser Control
The MyPresenceChooser control handles the user’s presence status as a separate control.
Clicking the control displays a list of presence status options. The user can change their presence status by selecting one of these options.
<StackPanel>
<controls:MyPresenceChooser/>
</StackPanel>
MyNoteBox Control
The MyNoteBox control handles the user note string as a separate control.
The user can change their note string by typing in new text and pressing the Enter key.
<StackPanel>
<controls:MyNoteBox/>
</StackPanel>