RadTabbedWindow
A Window component which hosts RadTabControl and simulates browser behavior. Tabs can be selected, pinned, unpinned, closed, reordered.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
[TelerikToolboxCategory("Navigation")]
public class RadTabbedWindow : RadWindow, INotifyLayoutChange, IDragAware
Inheritance: objectWindowBaseRadWindowRadTabbedWindow
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadTabbedWindow class.
public RadTabbedWindow()
Use this constructor to create an instance of the RadTabbedWindow. In order for the RadTabbedWindow to be displayed, it is not necessary to add it to the visual tree.
Fields
AddButtonStyleProperty
DependencyProperty
Identifies the AddButtonStyle property.
public static readonly DependencyProperty AddButtonStyleProperty
AddButtonVisibilityProperty
DependencyProperty
Identifies the AddButtonVisibility dependency property.
public static readonly DependencyProperty AddButtonVisibilityProperty
DisplayMemberPathProperty
DependencyProperty
Registers the DisplayMemberPath property.
public static readonly DependencyProperty DisplayMemberPathProperty
DragDropModeProperty
DependencyProperty
Registers the DragDropMode property.
public static readonly DependencyProperty DragDropModeProperty
IsContentPreservedProperty
DependencyProperty
Identifies the IsContentPreserved property.
public static readonly DependencyProperty IsContentPreservedProperty
ItemContainerStyleProperty
DependencyProperty
Identifies the ItemContainerStyle dependency property.
public static readonly DependencyProperty ItemContainerStyleProperty
ItemContainerStyleSelectorProperty
DependencyProperty
Identifies the ItemContainerStyleSelector dependency property.
public static readonly DependencyProperty ItemContainerStyleSelectorProperty
ItemMinWidthProperty
DependencyProperty
Registers the ItemMinWidth property.
public static readonly DependencyProperty ItemMinWidthProperty
ItemsPanelProperty
DependencyProperty
Identifies the ItemsPanel dependency property.
public static readonly DependencyProperty ItemsPanelProperty
ItemsSourceProperty
DependencyProperty
Identifies the ItemsSource dependency property.
public static readonly DependencyProperty ItemsSourceProperty
ItemTemplateProperty
DependencyProperty
Identifies the ItemTemplate dependency property.
public static readonly DependencyProperty ItemTemplateProperty
ItemTemplateSelectorProperty
DependencyProperty
Identifies the ItemTemplateSelector dependency property.
public static readonly DependencyProperty ItemTemplateSelectorProperty
ItemWidthProperty
DependencyProperty
Registers the ItemWidth property.
public static readonly DependencyProperty ItemWidthProperty
ScrollModeProperty
DependencyProperty
Identifies the ScrollModeProperty property.
public static readonly DependencyProperty ScrollModeProperty
SelectedIndexProperty
DependencyProperty
Identifies the SelectedIndex dependency property.
public static readonly DependencyProperty SelectedIndexProperty
SelectedItemProperty
DependencyProperty
Identifies the SelectedItem dependency property.
public static readonly DependencyProperty SelectedItemProperty
SelectedItemRemoveBehaviourProperty
DependencyProperty
Identifies the SelectedItemRemoveBehaviour property.
public static readonly DependencyProperty SelectedItemRemoveBehaviourProperty
TabbedWindowCreatingEvent
RoutedEvent
Registers the TabbedWindowCreating routed event.
public static readonly RoutedEvent TabbedWindowCreatingEvent
Properties
AddButtonStyle
Style
Gets or sets the style of the add tabs button.
public Style AddButtonStyle { get; set; }
AddButtonVisibility
Visibility
Gets or sets the AddButtonVisibility.
public Visibility AddButtonVisibility { get; set; }
Gets or sets the DisplayMemberPath of the TabControl.
public string DisplayMemberPath { get; set; }
Gets or sets a value indicating the current drag drop mode.
public DragDropMode DragDropMode { get; set; }
Gets or sets a value indicating whether the state of the content will be preserved when selection is changed.
public bool IsContentPreserved { get; set; }
True if the first tab will preserve the content state; otherwise, false.
ItemContainerStyle
Style
Gets or sets the ItemContainerStyle of the TabControl.
public Style ItemContainerStyle { get; set; }
ItemContainerStyleSelector
StyleSelector
Gets or sets the ItemContainerStyleSelector of the TabControl.
public StyleSelector ItemContainerStyleSelector { get; set; }
Gets or sets the minimum width of the tab items.
public double ItemMinWidth { get; set; }
Gets the Items of the inner RadTabControl. They can be populated either in XAML or in code.
public IList Items { get; }
ItemsPanel
ItemsPanelTemplate
Gets or sets the ItemsPanel of the TabControl.
public ItemsPanelTemplate ItemsPanel { get; set; }
Gets or sets the ItemsSource of the TabControl.
public IEnumerable ItemsSource { get; set; }
ItemTemplate
DataTemplate
Gets or sets the ItemTemplate of the TabControl.
public DataTemplate ItemTemplate { get; set; }
ItemTemplateSelector
DataTemplateSelector
Gets or sets the ItemTemplateSelector of the TabControl.
public DataTemplateSelector ItemTemplateSelector { get; set; }
Gets or sets the default width of the tab items.
public double ItemWidth { get; set; }
Gets the collection of currently pinned RadTabItems.
public ReadOnlyObservableCollection<RadTabItem> PinnedItems { get; }
Gets or sets the type of scrolling that will occur when the user presses the scroll buttons.
public TabControlScrollMode ScrollMode { get; set; }
Gets or sets the selected index of the TabControl.
public int SelectedIndex { get; set; }
Gets or sets the selected item of the TabControl.
public object SelectedItem { get; set; }
Determines what item should be selected when SelectedItem is removed.
public SelectedItemRemoveBehaviour SelectedItemRemoveBehaviour { get; set; }
Methods
Invoked whenever application-specific logic is needed to apply the template for the current instance of the RadTabbedWindow.
public override void OnApplyTemplate()
Overrides:
This method is called when the element is being templated and is used to apply visual tree changes and binding logic associated with the control's template.
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
Overrides:
Raises the event and sets from the active theme.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Overrides:
Occurs when the render sized is changed.
protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)
Occurs when new RadTabbedWindow is created with drag drop operation.
protected virtual bool OnTabbedWindowCreating(TabbedWindowCreatingEventArgs args)
Returns True if user has not canceled the creation.
Occurs when WindowState is changed.
Creates a new RadTabbedWindow host when a tab is dragged out of its parent window.
protected virtual RadTabbedWindow PrepareNewWindow()
Returns a new instance of RadTabbedWindow that serves as a host of the dragged out RadTabItem
Resets the theme.
public void ResetTheme()
Events
Occurs when RadTabItem is being added via the 'Add' button in the UI.
public event EventHandler<AddingNewTabEventArgs> AddingNewTab
Occurs when Items collection of RadTabItems is changed.
public event NotifyCollectionChangedEventHandler ItemsChanged
The preview event for SelectionChanged event. Handling this event rollbacks the selection. This is a RoutedEvent.
public event RadSelectionChangedEventHandler PreviewSelectionChanged
Occurs when a RadTabItem is about to be closed.
public event EventHandler<PreviewTabChangedEventArgs> PreviewTabClosed
Occurs when a RadTabItem is about to be pinned.
public event EventHandler<PreviewTabChangedEventArgs> PreviewTabPinned
Occurs when a RadTabItem is about to be unpinned.
public event EventHandler<PreviewTabChangedEventArgs> PreviewTabUnpinned
Occurs when a changed has been made to the selection. This is a RoutedEvent.
public event RadSelectionChangedEventHandler SelectionChanged
Occurs when a new RadTabbedWindow is created via drag drop and is about to be shown.
public event EventHandler<TabbedWindowCreatingEventArgs> TabbedWindowCreating
Occurs when a RadTabItem is closed.
public event EventHandler<TabChangedEventArgs> TabClosed
Occurs when a RadTabItem is pinned.
public event EventHandler<TabChangedEventArgs> TabPinned
Occurs when a RadTabItem is unpinned.
public event EventHandler<TabChangedEventArgs> TabUnpinned