

The type of the passed event arguments is TabChangedEventArgs.

TabUnpinned: Occurs after the tab item is unpinned.Unpinning the tab can be canceled by setting the Cancel property from the event arguments.

The type of the passed event arguments is PreviewTabChangedEventArgs. PreviewTabUnpinned: Occurs before the tab item is unpinned. You can get the currently pinned tab and its DataContext from the TabItem and DataContext properties from the event arguments. TabPinned: Occurs after the tab item is pinned. Pinning the tab can be canceled by setting the Cancel property from the event arguments.

RadTabItem can be close by pressing the mouse middle button while the mouse is over it. The button can be shown by setting the CloseButtonVisibility property of the RadTabItem to Visible. The close button of the RadTabItem is collapsed by default. The pinned/unpinned item will be brought into the view. Unpinning removes the item from the PinnedItems collection. Unpinning an item will move it to the first index possible which is not pinned. Similar behavior is observed when an item is unpinned. Pinning another item will move it to position 3. If there are 3 pinned items, they will be in indices: 0,1,2. For example, when no items are pinned, the first pinned item will move it to index 0 of PinnedItems collection. When an item is pinned it will be moved to the lowest index which is not occupied.
