ScheduleMeetingButton Style and Template

This topic describes the style and template for the ScheduleMeetingButton control. You can modify the default ControlTemplate to give the control a unique appearance. For more information, see Customizing Lync 2010 Controls.

There are no states or Style properties for the ScheduleMeetingButton control.

ScheduleMeetingButton Control

ScheduleMeetingButton Parts

The following table lists the named parts for the ScheduleMeetingButton control.

Part

Type

Description

CommandControl

Control

Starts the Microsoft Outlook dialog to initiate the desired action.

Default Style and Template

The following shows the XML namespace mapping that you have to specify when you work with styles and templates.

xmlns:controls="clr-namespace:Microsoft.Lync.Controls;assembly=Microsoft.Lync.Controls"

The following sample shows the default Windows Presentation Foundation style and template for the ScheduleMeetingButton control.

<Style x:Key="ScheduleMeetingButtonStyle1" TargetType="{x:Type controls:ScheduleMeetingButton}">
 <Setter Property="Template">
  <Setter.Value>
   <ControlTemplate TargetType="{x:Type controls:ScheduleMeetingButton}">
    <Button x:Name="PART_CommandControl" AutomationProperties.AutomationId="ScheduleMeetingButton" AutomationProperties.Name="Schedule meeting button" Microsoft_Lync_Controls_Internal_Framework_Commands:Command.Click="{Binding Model.ScheduleMeetingCommand, RelativeSource={RelativeSource TemplatedParent}}" Style="{StaticResource GlobalIconButtonStyle}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}">
     <ToolTipService.ToolTip>
      <ToolTip Style="{StaticResource DefaultToolTipStyle}" Content="{Binding Resources.ToolTipScheduleMeeting, Source={StaticResource ResourcesWrapper}}" />
     </ToolTipService.ToolTip>
     <Binding Path="Content" RelativeSource="{RelativeSource TemplatedParent}">
      <Binding.TargetNullValue>
       <ContentControl Style="{StaticResource IconStyle.ScheduleMeetings}" />
      </Binding.TargetNullValue>
     </Binding>                    
    </Button>
   </ControlTemplate>
  </Setter.Value>
 </Setter>
</Style>

See Also

Other Resources

Lync 2010 Controls

Lync 2010 Control Styles and Templates Reference

Customizing Lync 2010 Controls