C# Класс NSwagStudio.Controls.TabContent

Attached properties for persistent tab control
By default WPF TabControl bound to an ItemsSource destroys visual state of invisible tabs. Set ikriv:TabContent.IsCached="True" to preserve visual state of each tab.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
InternalContentManagerProperty System.Windows.DependencyProperty
IsCachedProperty System.Windows.DependencyProperty
TemplateProperty System.Windows.DependencyProperty
TemplateSelectorProperty System.Windows.DependencyProperty

Открытые методы

Метод Описание
GetIsCached ( DependencyObject obj ) : bool
GetTemplate ( DependencyObject obj ) : System.Windows.DataTemplate
GetTemplateSelector ( DependencyObject obj ) : System.Windows.Controls.DataTemplateSelector
SetIsCached ( DependencyObject obj, bool value ) : void
SetTemplate ( DependencyObject obj, System.Windows.DataTemplate value ) : void
SetTemplateSelector ( DependencyObject obj, System.Windows.Controls.DataTemplateSelector value ) : void

Приватные методы

Метод Описание
CreateContentTemplate ( ) : System.Windows.DataTemplate
EnsureContentTemplateIsNotModified ( System.Windows.Controls.TabControl tabControl ) : void
EnsureContentTemplateIsNull ( System.Windows.Controls.TabControl tabControl ) : void
GetContentManager ( System.Windows.Controls.TabControl tabControl, System.Windows.Controls.Decorator container ) : ContentManager
GetInternalCachedContent ( DependencyObject obj ) : ContentControl
GetInternalContentManager ( DependencyObject obj ) : object
GetInternalTabControl ( DependencyObject obj ) : System.Windows.Controls.TabControl
OnInternalTabControlChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs args ) : void
OnIsCachedChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs args ) : void
SetInternalCachedContent ( DependencyObject obj, ContentControl value ) : void
SetInternalContentManager ( DependencyObject obj, object value ) : void
SetInternalTabControl ( DependencyObject obj, System.Windows.Controls.TabControl value ) : void

Описание методов

GetIsCached() публичный статический Метод

public static GetIsCached ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
Результат bool

GetTemplate() публичный статический Метод

public static GetTemplate ( DependencyObject obj ) : System.Windows.DataTemplate
obj System.Windows.DependencyObject
Результат System.Windows.DataTemplate

GetTemplateSelector() публичный статический Метод

public static GetTemplateSelector ( DependencyObject obj ) : System.Windows.Controls.DataTemplateSelector
obj System.Windows.DependencyObject
Результат System.Windows.Controls.DataTemplateSelector

SetIsCached() публичный статический Метод

public static SetIsCached ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
Результат void

SetTemplate() публичный статический Метод

public static SetTemplate ( DependencyObject obj, System.Windows.DataTemplate value ) : void
obj System.Windows.DependencyObject
value System.Windows.DataTemplate
Результат void

SetTemplateSelector() публичный статический Метод

public static SetTemplateSelector ( DependencyObject obj, System.Windows.Controls.DataTemplateSelector value ) : void
obj System.Windows.DependencyObject
value System.Windows.Controls.DataTemplateSelector
Результат void

Описание свойств

InternalContentManagerProperty публичное статическое свойство

public static DependencyProperty,System.Windows InternalContentManagerProperty
Результат System.Windows.DependencyProperty

IsCachedProperty публичное статическое свойство

Controls whether tab content is cached or not
When TabContent.IsCached is true, visual state of each tab is preserved (cached), even when the tab is hidden
public static DependencyProperty,System.Windows IsCachedProperty
Результат System.Windows.DependencyProperty

TemplateProperty публичное статическое свойство

Used instead of TabControl.ContentTemplate for cached tabs
public static DependencyProperty,System.Windows TemplateProperty
Результат System.Windows.DependencyProperty

TemplateSelectorProperty публичное статическое свойство

Used instead of TabControl.ContentTemplateSelector for cached tabs
public static DependencyProperty,System.Windows TemplateSelectorProperty
Результат System.Windows.DependencyProperty