Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
MetroDataGridCheckBox cell can be changed when IsReadOnly via keyboard + space #2788
What steps will reproduce this issue?
Simple to reproduce. Run the MahApps.Metro.Demo.NET45 application and go to the DataGrid tab. Click on a row in the top Album grid's ISSELECTED column. Press TAB then SPACE. The checkbox will toggle once it has focus. Setting the DataGrid to IsReadOnly explicitly in DataGridExamples.xaml doesn't help.
Should not be able to toggle the checkbox at all when the cell/column/row/grid is read only.
Need to set Focusable to False in the MetroDataGridCheckBox's style definition in Controls.DataGrid.xaml inside of the IsReadOnly DataTrigger.
With this done, you cannot tab into the checkbox and toggle it anymore. Will submit a PR shortly.