You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Expected outcome
Should not be able to toggle the checkbox at all when the cell/column/row/grid is read only.
The fix
Need to set Focusable to False in the MetroDataGridCheckBox's style definition in Controls.DataGrid.xaml inside of the IsReadOnly DataTrigger.
<Setter Property="Focusable" Value="False" />
With this done, you cannot tab into the checkbox and toggle it anymore. Will submit a PR shortly.
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.
Expected outcome
Should not be able to toggle the checkbox at all when the cell/column/row/grid is read only.
The fix
Need to set Focusable to False in the MetroDataGridCheckBox's style definition in Controls.DataGrid.xaml inside of the IsReadOnly DataTrigger.
<Setter Property="Focusable" Value="False" />
With this done, you cannot tab into the checkbox and toggle it anymore. Will submit a PR shortly.
--
Environment
The text was updated successfully, but these errors were encountered: