Event Bounds and Clipping
Introduction
Default Behavior
StackPanel panel = new ();
panel.AddToRoot();
panel.Spacing = 10;
panel.Anchor(Anchor.Center);
Button defaultButton = new();
panel.AddChild(defaultButton);
defaultButton.Text = "Default";
Button largeButton = new();
panel.AddChild(largeButton);
largeButton.Text = "Large";
largeButton.Width = 200;
largeButton.Height = 100;
Button smallButton = new();
panel.AddChild(smallButton);
smallButton.Text = "Small";
smallButton.Width = 50;
smallButton.Height = 25;
Background Separate from Control


Parent Bounds

Raising Events Outside of Parent Bounds

Last updated
Was this helpful?

