Skip to content

Add TableViewColumn.IsVisible property #21818

Description

@OleRoss

Is your feature request related to a problem? Please describe.

I really like the idea of the TableView as a slim, readonly table. I understand that it is supposed to be minimal, but right now I have no way to show/hide columns defined in axaml.

Describe the solution you'd like

The DataGridColumn provides an IsVisible property. I would like to have something similar for the TableViewColumn as well.

<TableViewColumn
    Header="Optional"
    Binding="{CompiledBinding OptionalValue}"
    Width="*"
    IsVisible="{CompiledBinding ShowOptionalColumn}"
 />

Describe alternatives you've considered

Right now, I am setting the Width=0 manually from code behind. That works in theory; however, I have to know the width in code-behind, and I would like to avoid the code-behind entirely if possible.

Additional context

Similar usecase to this ticket even though that is about a layout issue, not a feature request.

If this Feature was not excluded on purpose, I would be happy to help with the implementation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions