Merge pull request #1371 from BDisp/autosize-direction-text-init

CheckBox AutoSize should initialize with the Label default.
This commit is contained in:
Charlie Kindel
2021-07-21 09:01:36 -07:00
committed by GitHub

View File

@@ -53,7 +53,8 @@ namespace UICatalog {
var ckbAutoSize = new CheckBox ("Auto Size") {
X = Pos.Center (),
Y = Pos.Center () + 5
Y = Pos.Center () + 5,
Checked = labelH.AutoSize = labelV.AutoSize
};
ckbAutoSize.Toggled += (_) => labelH.AutoSize = labelV.AutoSize = ckbAutoSize.Checked;
Win.Add (ckbAutoSize);