Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab key makes IsReadOnly column editable #107

Open
arthurits opened this issue Feb 10, 2025 · 0 comments
Open

Tab key makes IsReadOnly column editable #107

arthurits opened this issue Feb 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@arthurits
Copy link

Description:

Apparently, moving inside the TableView with the Tab key, it makes possible to edit columns defined with IsReadOnly="True"

For instance, given a TableView defined as:

<tableview:TableView x:Name="DataTable"
                     x:DefaultBindMode="TwoWay"
                     Background="White"
                     ItemsSource="{x:Bind ViewModel.TaskData}"
                     AutoGenerateColumns="False"
                     SelectionChanged="TableView_SelectionChanged"
                     SelectionMode="Extended"
                     Visibility="{x:Bind ViewModel.VisibleTableView, Mode=OneWay}">
    <tableview:TableView.Columns>
        <tableview:TableViewTextColumn
            Binding="{Binding TaskName}"
            IsReadOnly="True"
            CanFilter="False"
            CanSort="False">
        </tableview:TableViewTextColumn>
        ...
</tableview:TableView>

When the last columun cell is edited and, afterwards, the Tab key is pressed...
Image

the focus jumps to the first column and the user can edit the first column which has the property IsReadOnly set to True
Image

Environment:

  • Package Version: 1.2.2
  • WinAppSDK Version: 1.6.250108002
@arthurits arthurits added the bug Something isn't working label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant