-
Notifications
You must be signed in to change notification settings - Fork 3
Utils.TabDisplayItem
Back to home | Back to Reference | View raw text
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SolidShineUi.Utils
SolidShineUi.Utils.TabDisplayItem[[TabDisplayItem]]
end
subgraph System.Windows.Markup
System.Windows.Markup.IComponentConnector[[IComponentConnector]]
end
subgraph System.Windows.Controls
System.Windows.Controls.UserControl[[UserControl]]
end
System.Windows.Markup.IComponentConnector --> SolidShineUi.Utils.TabDisplayItem
System.Windows.Controls.UserControl --> SolidShineUi.Utils.TabDisplayItem
Type | Name | Methods |
---|---|---|
bool |
AllowDataDragDrop Get or set if data can be dropped onto this TabDisplayItem. |
get, set |
bool |
AllowDragDrop Get or set if the tab can be dragged and dropped. |
get, set |
Brush |
BorderBrush Get or set the brush for the border of this control. |
get, set |
Brush |
BorderHighlightBrush Get or set the brush for the border while this TabDisplayItem is highlighted (i.e. the mouse is over it, or it had keyboard focus). |
get, set |
bool |
CanSelect Get or set if the tab can be selected. |
get, set |
ColorScheme |
ColorScheme Get or set the color scheme to apply to the window. |
get, set |
Brush |
HighlightBrush Get or set the brush for the background while this TabDisplayItem is highlighted (i.e. the mouse is over it, or it has keyboard focus). |
get, set |
bool |
IsDirty Get or set if this tab is dirty. This can be used to visually indicate, for example, unsaved changes in the tab's contents. |
get, set |
bool |
IsSelected Get or set if this tab is selected. A selected tab will have visual differences to show that it is selected. |
get, set |
TabControl |
ParentTabControl Get or set the parent TabControl item that holds this tab item. |
get, set |
bool |
ShowTabsOnBottom Get or set if the parent tab control has its ShowTabsOnBottom property set. |
get, set |
Brush |
TabBackground Get or set the brush used for the custom background of this tab. Taken from TabItem.TabBackground . |
get, set |
TabItem |
TabItem The TabItem that this TabDisplayItem is representing. It is not advisable to change this property after the control is loaded; instead, just create a new TabDisplayItem. |
get, set |
Returns | Name |
---|---|
void |
OnColorSchemeChanged (DependencyObject d, DependencyPropertyChangedEventArgs e)Perform an action when the ColorScheme property has changed. Primarily used internally. |
Returns | Name |
---|---|
void |
ApplyColorScheme (ColorScheme cs)Apply a color scheme to this control. The color scheme can quickly apply a whole visual style to the control. |
void |
InitializeComponent ()InitializeComponent |
Returns | Name |
---|---|
Delegate |
_CreateDelegate (Type delegateType, string handler) |
IComponentConnector
UserControl
public TabDisplayItem()
Create a TabDisplayItem.
public TabDisplayItem(TabItem tab)
Type | Name | Description |
---|---|---|
TabItem |
tab | The base TabItem that this TabDisplayItem represents. |
Create a TabDisplayItem.
public static void OnColorSchemeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
Type | Name | Description |
---|---|---|
DependencyObject |
d | The object containing the property that changed. |
DependencyPropertyChangedEventArgs |
e | Event arguments about the property change. |
Perform an action when the ColorScheme property has changed. Primarily used internally.
public void ApplyColorScheme(ColorScheme cs)
Type | Name | Description |
---|---|---|
ColorScheme |
cs | The color scheme to apply. |
Apply a color scheme to this control. The color scheme can quickly apply a whole visual style to the control.
public virtual void InitializeComponent()
InitializeComponent
internal Delegate _CreateDelegate(Type delegateType, string handler)
Type | Name | Description |
---|---|---|
Type |
delegateType | |
string |
handler |
public Brush HighlightBrush { get; set; }
Get or set the brush for the background while this TabDisplayItem is highlighted (i.e. the mouse is over it, or it has keyboard focus).
public Brush BorderHighlightBrush { get; set; }
Get or set the brush for the border while this TabDisplayItem is highlighted (i.e. the mouse is over it, or it had keyboard focus).
public Brush BorderBrush { get; set; }
Get or set the brush for the border of this control.
public Brush TabBackground { get; set; }
Get or set the brush used for the custom background of this tab. Taken from TabItem.TabBackground .
public bool CanSelect { get; set; }
Get or set if the tab can be selected.
public bool IsDirty { get; set; }
Get or set if this tab is dirty. This can be used to visually indicate, for example, unsaved changes in the tab's contents.
public bool IsSelected { get; set; }
Get or set if this tab is selected. A selected tab will have visual differences to show that it is selected.
public TabItem TabItem { get; set; }
The TabItem that this TabDisplayItem is representing. It is not advisable to change this property after the control is loaded; instead, just create a new TabDisplayItem.
public bool ShowTabsOnBottom { get; set; }
Get or set if the parent tab control has its ShowTabsOnBottom property set.
This setting is used as there are some visual differences, depending upon if the tab list is on the top or bottom of the tab control.
public TabControl ParentTabControl { get; set; }
Get or set the parent TabControl item that holds this tab item.
public ColorScheme ColorScheme { get; set; }
Get or set the color scheme to apply to the window.
public bool AllowDragDrop { get; set; }
Get or set if the tab can be dragged and dropped.
public bool AllowDataDragDrop { get; set; }
Get or set if data can be dropped onto this TabDisplayItem.
public event EventHandler RequestClose
Raised when the Close button is clicked, and this tab wants to be closed.
public event EventHandler RightClick
Raised when the control is right-clicked.
public event EventHandler Click
Raised when the control is clicked.
public event TabItemDropEventHandler TabItemDrop
Raised when a TabItem is dropped onto this TabDisplayItem. Used as part of the TabControl's drag-and-drop system.
protected event DependencyPropertyChangedEventHandler InternalTabBackgroundChanged
Internal event for handling a property changed. Please view the event that is not prefixed as "Internal".
protected event DependencyPropertyChangedEventHandler InternalIsSelectedChanged
Internal event for handling a property changed. Please view the event that is not prefixed as "Internal".
protected event DependencyPropertyChangedEventHandler InternalTabItemChanged
Internal event for handling a property changed. Please view the event that is not prefixed as "Internal".
protected event DependencyPropertyChangedEventHandler InternalShowTabsOnBottomChanged
Internal event for handling a property changed. Please view the event that is not prefixed as "Internal".
protected event DependencyPropertyChangedEventHandler InternalParentChanged
Internal event for handling a property changed. Please view the event that is not prefixed as "Internal".
public delegate void TabItemDropEventHandler(object sender, TabItemDropEventArgs e)
Type | Name | Description |
---|---|---|
object |
sender | |
TabItemDropEventArgs |
e |
Generated with ModularDoc