dahall / AeroWizard

Library for easy creation of custom and Aero Wizards. Aero Wizard strictly follows Microsoft guidelines and uses Visual Styles to get visual theming.
MIT License
112 stars 32 forks source link

Fixing issue when the parent is a UserControl #15 #89

Closed HerrKater closed 4 years ago

HerrKater commented 4 years ago

The WizardControl assumes that the parent is always a Form. See WizardControl.OnParentChanged line 548. This prevents the ConfigureWindowFrame() from running in case the parent is a UserControl. Since the Form and the UserControl doesn't have a common base class that defines the Load event - which is triggering the previously mentioned function - we have to hook to both of those separate Load events, which makes the solution less elegant, but also fixes a nullreference exception.

dahall commented 4 years ago

Has this been tested as both a child of a Form and a child of UserControl?

dahall commented 4 years ago

Closing as duplicate with #90