C# Class 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.
Afficher le fichier Open project: NSwag/NSwag Class Usage Examples

Méthodes publiques

Свойство Type Description
InternalContentManagerProperty System.Windows.DependencyProperty
IsCachedProperty System.Windows.DependencyProperty
TemplateProperty System.Windows.DependencyProperty
TemplateSelectorProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

GetIsCached() public static méthode

public static GetIsCached ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
Résultat bool

GetTemplate() public static méthode

public static GetTemplate ( DependencyObject obj ) : System.Windows.DataTemplate
obj System.Windows.DependencyObject
Résultat System.Windows.DataTemplate

GetTemplateSelector() public static méthode

public static GetTemplateSelector ( DependencyObject obj ) : System.Windows.Controls.DataTemplateSelector
obj System.Windows.DependencyObject
Résultat System.Windows.Controls.DataTemplateSelector

SetIsCached() public static méthode

public static SetIsCached ( DependencyObject obj, bool value ) : void
obj System.Windows.DependencyObject
value bool
Résultat void

SetTemplate() public static méthode

public static SetTemplate ( DependencyObject obj, System.Windows.DataTemplate value ) : void
obj System.Windows.DependencyObject
value System.Windows.DataTemplate
Résultat void

SetTemplateSelector() public static méthode

public static SetTemplateSelector ( DependencyObject obj, System.Windows.Controls.DataTemplateSelector value ) : void
obj System.Windows.DependencyObject
value System.Windows.Controls.DataTemplateSelector
Résultat void

Property Details

InternalContentManagerProperty public_oe static_oe property

public static DependencyProperty,System.Windows InternalContentManagerProperty
Résultat System.Windows.DependencyProperty

IsCachedProperty public_oe static_oe property

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
Résultat System.Windows.DependencyProperty

TemplateProperty public_oe static_oe property

Used instead of TabControl.ContentTemplate for cached tabs
public static DependencyProperty,System.Windows TemplateProperty
Résultat System.Windows.DependencyProperty

TemplateSelectorProperty public_oe static_oe property

Used instead of TabControl.ContentTemplateSelector for cached tabs
public static DependencyProperty,System.Windows TemplateSelectorProperty
Résultat System.Windows.DependencyProperty