ColumnVisibilityBehavior ClassDW.WPFToolkit Documentation
Brings the feature to controls with a GridViewColumnHeader to show or hide columns dynamically.
Inheritance Hierarchy

SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      DW.WPFToolkit.InteractivityColumnVisibilityBehavior

Namespace: DW.WPFToolkit.Interactivity
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public class ColumnVisibilityBehavior : DependencyObject

The ColumnVisibilityBehavior type exposes the following members.

Methods

  NameDescription
Public methodStatic memberGetName
Gets the name of the element.
Public methodStatic memberGetVisibleColumns
Gets a list of visible columns by their name.
Public methodStatic memberSetName
Attaches the name.
Public methodStatic memberSetVisibleColumns
Attaches a list of visible columns by their name.
Top
Fields

  NameDescription
Public fieldStatic memberNameProperty
Public fieldStatic memberVisibleColumnsProperty
Top
Attached Properties

  NameDescription
Public attached propertyName
Public attached propertyVisibleColumns
Top
Examples

public class MainViewModel : ObservableObject
{
    public MainViewModel()
    {
        VisibleColumnNames = new EnhancedObservableCollection<string> { "Name", "Size" };
    }

    public EnhancedObservableCollection<string> VisibleColumnNames { get; private set; }
}
See Also

Reference