Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <TabControl
- AutomationProperties.AutomationId="MainTabControl"
- cal:RegionManager.RegionName="{x:Static inf:RegionNames.MainRegion}"
- Width="Auto" Height="Auto" Margin="10,10,0,0"
- HorizontalAlignment="Stretch"
- IsSynchronizedWithCurrentItem="True"
- ItemTemplate="{StaticResource TabItemTemplate}"
- SelectionChanged="TabControl_SelectionChanged">
- <DataTemplate x:Key="ClosableTabItemTemplate">
- <DockPanel Width="120">
- <Button
- Command="inf:CloseCommands.CloseCommand"
- Content="X"
- Cursor="Hand"
- DockPanel.Dock="Right"
- Focusable="False"
- FontFamily="Courier"
- FontSize="9"
- FontWeight="Bold"
- Margin="0,1,0,0"
- Padding="0"
- VerticalContentAlignment="Bottom"
- Width="16" Height="16"
- />
- <ContentPresenter
- Content="{Binding}"
- VerticalAlignment="Center"
- />
- </DockPanel>
- </DataTemplate>
Add Comment
Please, Sign In to add comment