Open Miepee opened 1 year ago
Some controls have some different default values that I'd expect to be set after initializing the control.
The default values don't actually have any effect until the form(?) gets loaded.
public MainForm() { var label = new Label(); Console.WriteLine("beginning " + label.Visible); label.Shown+= (_, _1) => Console.WriteLine("shown " + label.Visible); label.PreLoad += (_, _1) => Console.WriteLine("preload " + label.Visible); label.Load += (_, _1) => Console.WriteLine("load " + label.Visible); label.LoadComplete += (_, _1) => Console.WriteLine("loadcompete " + label.Visible); Content = label; Console.WriteLine("end constructor " + label.Visible); }
Operating System(s): Arch Linux
This may or may not be related to #2095 . I just discovered this, because the "StylesShouldApplyWhenControlDynamicallyAdded" tests have the same setup, (i.e. create label, assert on its visibility)
Expected Behavior
Some controls have some different default values that I'd expect to be set after initializing the control.
Actual Behavior
The default values don't actually have any effect until the form(?) gets loaded.
Steps to Reproduce the Problem
Code that Demonstrates the Problem
Specifications
Operating System(s): Arch Linux
Additional Information
This may or may not be related to #2095 . I just discovered this, because the "StylesShouldApplyWhenControlDynamicallyAdded" tests have the same setup, (i.e. create label, assert on its visibility)