Invalidate on Checked change to force redraw
- Issue MatterHackers/MCCentral#3047 SliceSettings checkbox fields acting erratically
This commit is contained in:
parent
0464145ef1
commit
19223b9dd2
1 changed files with 10 additions and 1 deletions
|
|
@ -54,7 +54,16 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
private double toggleRadius = 10;
|
||||
private double toggleRadiusPlusPadding = 11;
|
||||
|
||||
public bool Checked { get; set; }
|
||||
private bool _checked;
|
||||
public bool Checked
|
||||
{
|
||||
get => _checked;
|
||||
set
|
||||
{
|
||||
_checked = value;
|
||||
this.Invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
public event EventHandler CheckedStateChanged;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue