WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ColumnChooser - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ColumnChooser

    Represents a Column Chooser Window for SfDataGrid.

    Inheritance
    System.Object
    ChromelessWindow
    ColumnChooser
    Implements
    IColumnChooser
    System.Windows.Markup.IComponentConnector
    Inherited Members
    ChromelessWindow.CloseWindow
    ChromelessWindow.ToggleMaximizedState
    ChromelessWindow.ToggleMinimizedState
    ChromelessWindow.TitleTextAlignmentProperty
    ChromelessWindow.IconAlignmentProperty
    ChromelessWindow.ResizeGripStyleProperty
    ChromelessWindow.ShowMaximizeButtonProperty
    ChromelessWindow.ShowMinimizeButtonProperty
    ChromelessWindow.UseNativeChromeProperty
    ChromelessWindow.TitleBarTemplateProperty
    ChromelessWindow.MaximizeButtonTemplateProperty
    ChromelessWindow.MinimizeButtonTemplateProperty
    ChromelessWindow.RestoreButtonTemplateProperty
    ChromelessWindow.CloseButtonTemplateProperty
    ChromelessWindow.LeftHeaderItemsSourceProperty
    ChromelessWindow.RightHeaderItemsSourceProperty
    ChromelessWindow.LeftHeaderItemTemplateProperty
    ChromelessWindow.RightHeaderItemTemplateProperty
    ChromelessWindow.ResizeBorderBrushProperty
    ChromelessWindow.TitleBarBackgroundProperty
    ChromelessWindow.TitleBarHeightProperty
    ChromelessWindow.TitleFontSizeProperty
    ChromelessWindow.TitleBarForegroundProperty
    ChromelessWindow.NavigationBarBackgroundProperty
    ChromelessWindow.WindowContentAreaBorderBrushProperty
    ChromelessWindow.ResizeBorderThicknessProperty
    ChromelessWindow.WindowCornerRadiusProperty
    ChromelessWindow.CornerRadiusProperty
    ChromelessWindow.ShowIconProperty
    ChromelessWindow.ShowTitleProperty
    ChromelessWindow.HideTaskBarProperty
    ChromelessWindow.OnIsGlassActiveChanged(DependencyPropertyChangedEventArgs)
    ChromelessWindow.SystemButtonsUpdate()
    ChromelessWindow.OnMouseUp(MouseButtonEventArgs)
    ChromelessWindow.OnMouseLeftButtonUp(MouseButtonEventArgs)
    ChromelessWindow.OnMouseDown(MouseButtonEventArgs)
    ChromelessWindow.OnSourceInitialized(EventArgs)
    ChromelessWindow.OnPropertyChanged(DependencyPropertyChangedEventArgs)
    ChromelessWindow.ArrangeOverride(Size)
    ChromelessWindow.MeasureOverride(Size)
    ChromelessWindow.OnPreviewMouseLeftButtonUp(MouseButtonEventArgs)
    ChromelessWindow.OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)
    ChromelessWindow.OnMouseMove(MouseEventArgs)
    ChromelessWindow.OnPreviewMouseMove(MouseEventArgs)
    ChromelessWindow.ResizeBorderBrush
    ChromelessWindow.TitleBarBackground
    ChromelessWindow.TitleBarHeight
    ChromelessWindow.TitleFontSize
    ChromelessWindow.TitleBarForeground
    ChromelessWindow.NavigationBarBackground
    ChromelessWindow.WindowContentAreaBorderBrush
    ChromelessWindow.ResizeBorderThickness
    ChromelessWindow.TitleBarTemplate
    ChromelessWindow.MaximizeButtonTemplate
    ChromelessWindow.MinimizeButtonTemplate
    ChromelessWindow.RestoreButtonTemplate
    ChromelessWindow.CloseButtonTemplate
    ChromelessWindow.TitleBar
    ChromelessWindow.TitleTextAlignment
    ChromelessWindow.IconAlignment
    ChromelessWindow.CornerRadius
    ChromelessWindow.ShowIcon
    ChromelessWindow.ShowTitle
    ChromelessWindow.LeftHeaderItemsSource
    ChromelessWindow.RightHeaderItemsSource
    ChromelessWindow.LeftHeaderItemTemplate
    ChromelessWindow.RightHeaderItemTemplate
    ChromelessWindow.ResizeGripStyle
    ChromelessWindow.UseNativeChrome
    ChromelessWindow.ShowMaximizeButton
    ChromelessWindow.ShowMinimizeButton
    ChromelessWindow.HideTaskBar
    ChromelessWindow.IsGlassActiveChanged
    ChromelessWindow.ReSizeGripMouseEvent
    Namespace: Syncfusion.UI.Xaml.Grid
    Assembly: Syncfusion.SfGrid.WPF.dll
    Syntax
    public class ColumnChooser : ChromelessWindow, IColumnChooser, IComponentConnector

    Constructors

    ColumnChooser(SfDataGrid)

    Initializes a new instance of ColumnChooser class.

    Declaration
    public ColumnChooser(SfDataGrid dataGrid)
    Parameters
    Type Name Description
    SfDataGrid dataGrid

    The SfDataGrid.

    Fields

    WaterMarkTextProperty

    Identifies the Syncfusion.UI.Xaml.Grid.ColumnChooser.WaterMarkText dependency property.

    Declaration
    public static readonly DependencyProperty WaterMarkTextProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty
    Remarks

    The identifier for the Syncfusion.UI.Xaml.Grid.ColumnChooser.WaterMarkText dependency property.

    Properties

    DataGrid

    Gets or sets the reference to the SfDataGrid instance for the Column Chooser.

    Declaration
    protected SfDataGrid DataGrid { get; set; }
    Property Value
    Type Description
    SfDataGrid

    The SfDataGrid instance.

    WaterMarkText

    Gets or sets the water mark text for empty ColumnChooser window.

    Declaration
    public string WaterMarkText { get; set; }
    Property Value
    Type Description
    System.String

    A string that displays the water mark text for column chooser window. The default value is string.Empty.

    Methods

    AddChild(GridColumn)

    Adds the specified column to the children of column chooser window.

    Declaration
    public virtual void AddChild(GridColumn column)
    Parameters
    Type Name Description
    GridColumn column

    The corresponding column to add children for the column chooser window.

    GetControlRect()

    Gets the display rectangle for column chooser window.

    Declaration
    public virtual Rect GetControlRect()
    Returns
    Type Description
    System.Windows.Rect

    The display rectangle for column chooser window.

    InitializeComponent()

    InitializeComponent

    Declaration
    public void InitializeComponent()

    OnApplyTemplate()

    Builds the visual tree for the Column Chooser window when a new template is applied.

    Declaration
    public override void OnApplyTemplate()
    Overrides
    ChromelessWindow.OnApplyTemplate()

    RemoveChild(GridColumn)

    Removes the specified child column from the column chooser window.

    Declaration
    public virtual void RemoveChild(GridColumn column)
    Parameters
    Type Name Description
    GridColumn column

    The corresponding column to remove child from the column chooser window.

    Implements

    IColumnChooser
    System.Windows.Markup.IComponentConnector
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved