<Button Content="Close the selected tab" Command="{x:Static igWindows:TabControlCommands.CloseSelected}" CommandTarget="{Binding ElementName=xamTabControl1}" /> <igWindows:XamTabControl Name="xamTabControl1" AllowTabClosing="True"> <igWindows:TabItemEx Header="Tab 1"> <!--TODO: Add content here--> </igWindows:TabItemEx> <igWindows:TabItemEx Header="Tab 2"> <!--TODO: Add content here--> </igWindows:TabItemEx> <igWindows:TabItemEx Header="Tab 3"> <!--TODO: Add content here--> </igWindows:TabItemEx> </igWindows:XamTabControl>