ClassRadTabbedWindow
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
RadTabbedWindow()
Initializes a new instance of the RadTabbedWindow class.
Declaration
public RadTabbedWindow()
Remarks
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
Identifies the AddButtonStyle property.
Declaration
public static readonly DependencyProperty AddButtonStyleProperty
Field Value
DependencyProperty
AddButtonVisibilityProperty
Identifies the AddButtonVisibility dependency property.
Declaration
public static readonly DependencyProperty AddButtonVisibilityProperty
Field Value
DependencyProperty
DisplayMemberPathProperty
Registers the DisplayMemberPath property.
Declaration
public static readonly DependencyProperty DisplayMemberPathProperty
Field Value
DependencyProperty
DragDropModeProperty
Registers the DragDropMode property.
Declaration
public static readonly DependencyProperty DragDropModeProperty
Field Value
DependencyProperty
IsContentPreservedProperty
Identifies the IsContentPreserved property.
Declaration
public static readonly DependencyProperty IsContentPreservedProperty
Field Value
DependencyProperty
ItemContainerStyleProperty
Identifies the ItemContainerStyle dependency property.
Declaration
public static readonly DependencyProperty ItemContainerStyleProperty
Field Value
DependencyProperty
ItemContainerStyleSelectorProperty
Identifies the ItemContainerStyleSelector dependency property.
Declaration
public static readonly DependencyProperty ItemContainerStyleSelectorProperty
Field Value
DependencyProperty
ItemMinWidthProperty
Registers the ItemMinWidth property.
Declaration
public static readonly DependencyProperty ItemMinWidthProperty
Field Value
DependencyProperty
ItemTemplateProperty
Identifies the ItemTemplate dependency property.
Declaration
public static readonly DependencyProperty ItemTemplateProperty
Field Value
DependencyProperty
ItemTemplateSelectorProperty
Identifies the ItemTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ItemTemplateSelectorProperty
Field Value
DependencyProperty
ItemWidthProperty
Registers the ItemWidth property.
Declaration
public static readonly DependencyProperty ItemWidthProperty
Field Value
DependencyProperty
ItemsPanelProperty
Identifies the ItemsPanel dependency property.
Declaration
public static readonly DependencyProperty ItemsPanelProperty
Field Value
DependencyProperty
ItemsSourceProperty
Identifies the ItemsSource dependency property.
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
DependencyProperty
ScrollModeProperty
Identifies the ScrollModeProperty property.
Declaration
public static readonly DependencyProperty ScrollModeProperty
Field Value
DependencyProperty
SelectedIndexProperty
Identifies the SelectedIndex dependency property.
Declaration
public static readonly DependencyProperty SelectedIndexProperty
Field Value
DependencyProperty
SelectedItemProperty
Identifies the SelectedItem dependency property.
Declaration
public static readonly DependencyProperty SelectedItemProperty
Field Value
DependencyProperty
SelectedItemRemoveBehaviourProperty
Identifies the SelectedItemRemoveBehaviour property.
Declaration
public static readonly DependencyProperty SelectedItemRemoveBehaviourProperty
Field Value
DependencyProperty
TabbedWindowCreatingEvent
Registers the TabbedWindowCreating routed event.
Declaration
public static readonly RoutedEvent TabbedWindowCreatingEvent
Field Value
RoutedEvent
Properties
AddButtonStyle
Gets or sets the style of the add tabs button.
Declaration
public Style AddButtonStyle { get; set; }
Property Value
Style
AddButtonVisibility
Gets or sets the AddButtonVisibility.
Declaration
public Visibility AddButtonVisibility { get; set; }
Property Value
Visibility
DisplayMemberPath
Gets or sets the DisplayMemberPath of the TabControl.
DragDropMode
Gets or sets a value indicating the current drag drop mode.
Declaration
public DragDropMode DragDropMode { get; set; }
Property Value
IsContentPreserved
Gets or sets a value indicating whether the state of the content will be preserved when selection is changed.
Declaration
public bool IsContentPreserved { get; set; }
Property Value
True if the first tab will preserve the content state; otherwise, false.
ItemContainerStyle
Gets or sets the ItemContainerStyle of the TabControl.
Declaration
public Style ItemContainerStyle { get; set; }
Property Value
Style
ItemContainerStyleSelector
Gets or sets the ItemContainerStyleSelector of the TabControl.
Declaration
public StyleSelector ItemContainerStyleSelector { get; set; }
Property Value
StyleSelector
ItemMinWidth
Gets or sets the minimum width of the tab items.
ItemTemplate
Gets or sets the ItemTemplate of the TabControl.
Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
DataTemplate
ItemTemplateSelector
Gets or sets the ItemTemplateSelector of the TabControl.
Declaration
public DataTemplateSelector ItemTemplateSelector { get; set; }
Property Value
DataTemplateSelector
ItemWidth
Gets or sets the default width of the tab items.
Items
Gets the Items of the inner RadTabControl. They can be populated either in XAML or in code.
ItemsPanel
Gets or sets the ItemsPanel of the TabControl.
Declaration
public ItemsPanelTemplate ItemsPanel { get; set; }
Property Value
ItemsPanelTemplate
ItemsSource
Gets or sets the ItemsSource of the TabControl.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
PinnedItems
Gets the collection of currently pinned RadTabItems.
Declaration
public ReadOnlyObservableCollection<RadTabItem> PinnedItems { get; }
Property Value
ScrollMode
Gets or sets the type of scrolling that will occur when the user presses the scroll buttons.
Declaration
public TabControlScrollMode ScrollMode { get; set; }
Property Value
SelectedIndex
Gets or sets the selected index of the TabControl.
SelectedItem
Gets or sets the selected item of the TabControl.
SelectedItemRemoveBehaviour
Determines what item should be selected when SelectedItem is removed.
Declaration
public SelectedItemRemoveBehaviour SelectedItemRemoveBehaviour { get; set; }
Property Value
Methods
OnApplyTemplate()
Invoked whenever application-specific logic is needed to apply the template for the current instance of the RadTabbedWindow.
Declaration
public override void OnApplyTemplate()
Overrides
Remarks
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()
Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
Overrides
OnInitialized(EventArgs)
Raises the event and sets from the active theme.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
Overrides
OnRenderSizeChanged(SizeChangedInfo)
Occurs when the render sized is changed.
Declaration
protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)
Parameters
sizeInfo
SizeChangedInfo
OnTabbedWindowCreating(TabbedWindowCreatingEventArgs)
Occurs when new RadTabbedWindow is created with drag drop operation.
Declaration
protected virtual bool OnTabbedWindowCreating(TabbedWindowCreatingEventArgs args)
Parameters
args
Returns
Returns True if user has not canceled the creation.
OnWindowStateChanged(EventArgs)
Occurs when WindowState is changed.
Declaration
protected override void OnWindowStateChanged(EventArgs args)
Parameters
args
Overrides
PrepareNewWindow()
Creates a new RadTabbedWindow host when a tab is dragged out of its parent window.
Declaration
protected virtual RadTabbedWindow PrepareNewWindow()
Returns
Returns a new instance of RadTabbedWindow that serves as a host of the dragged out RadTabItem
Events
AddingNewTab
Occurs when RadTabItem is being added via the 'Add' button in the UI.
Declaration
public event EventHandler<AddingNewTabEventArgs> AddingNewTab
Event Value
ItemsChanged
Occurs when Items collection of RadTabItems is changed.
Declaration
public event NotifyCollectionChangedEventHandler ItemsChanged
Event Value
PreviewSelectionChanged
The preview event for SelectionChanged event. Handling this event rollbacks the selection. This is a RoutedEvent.
Declaration
public event RadSelectionChangedEventHandler PreviewSelectionChanged
Event Value
PreviewTabClosed
Occurs when a RadTabItem is about to be closed.
Declaration
public event EventHandler<PreviewTabChangedEventArgs> PreviewTabClosed
Event Value
PreviewTabPinned
Occurs when a RadTabItem is about to be pinned.
Declaration
public event EventHandler<PreviewTabChangedEventArgs> PreviewTabPinned
Event Value
PreviewTabUnpinned
Occurs when a RadTabItem is about to be unpinned.
Declaration
public event EventHandler<PreviewTabChangedEventArgs> PreviewTabUnpinned
Event Value
SelectionChanged
Occurs when a changed has been made to the selection. This is a RoutedEvent.
Declaration
public event RadSelectionChangedEventHandler SelectionChanged
Event Value
TabClosed
Occurs when a RadTabItem is closed.
Declaration
public event EventHandler<TabChangedEventArgs> TabClosed
Event Value
TabPinned
Occurs when a RadTabItem is pinned.
Declaration
public event EventHandler<TabChangedEventArgs> TabPinned
Event Value
TabUnpinned
Occurs when a RadTabItem is unpinned.
Declaration
public event EventHandler<TabChangedEventArgs> TabUnpinned
Event Value
TabbedWindowCreating
Occurs when a new RadTabbedWindow is created via drag drop and is about to be shown.
Declaration
public event EventHandler<TabbedWindowCreatingEventArgs> TabbedWindowCreating
Event Value