|
@@ -96,8 +96,6 @@ public class ExpanderButton : Button
|
|
|
ExpandedGlyph = new ('\u21d2'); // ⇒
|
|
|
}
|
|
|
|
|
|
- Text = $"{(Collapsed ? CollapsedGlyph : ExpandedGlyph)}";
|
|
|
-
|
|
|
ExpandOrCollapse (Collapsed);
|
|
|
}
|
|
|
|
|
@@ -157,9 +155,6 @@ public class ExpanderButton : Button
|
|
|
subview.Visible = !Collapsed;
|
|
|
subview.Enabled = !Collapsed;
|
|
|
}
|
|
|
-
|
|
|
- // BUGBUG: This should not be needed. There's some bug in the layout system that doesn't update the layout.
|
|
|
- superView.SuperView?.LayoutSubviews ();
|
|
|
}
|
|
|
|
|
|
return args.Cancel;
|
|
@@ -186,6 +181,8 @@ public class ExpanderButton : Button
|
|
|
|
|
|
private void ExpandOrCollapse (bool collapse)
|
|
|
{
|
|
|
+ Text = $"{(Collapsed ? CollapsedGlyph : ExpandedGlyph)}";
|
|
|
+
|
|
|
View superView = SuperView;
|
|
|
if (superView is Adornment adornment)
|
|
|
{
|