New to Telerik UI for WPFStart a free 30-day trial

Event args used when new tab is being added via the 'Add' button in the UI.

Definition

Namespace:Telerik.Windows.Controls.TabbedWindow

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
public class AddingNewTabEventArgs : RoutedEventArgs

Inheritance: objectAddingNewTabEventArgs

Constructors

Initializes a new instance of the AddingNewTabEventArgs class.

C#
public AddingNewTabEventArgs(RoutedEvent routedEvent, object source)
Parameters:routedEventRoutedEventsourceobject

Properties

Gets or sets a value indicating whether adding the new tab via add button should be cancelled.

C#
public bool Cancel { get; set; }

This will be the new RadTabItem created internally or the ViewModel user should provide in databinding scenarios. User can set properties to the RadTabItem like Header, Content or provide new instance of ViewModel to be added in the ItemsSource collection.

C#
public object Item { get; set; }