Have you ever found your self wandering sleepless around in this directory here : "C:Program FilesCommon FilesMicrosoft SharedHelp 8" and stumbled over this assembly here: Yeah right that's the .Net 2.0 Wizard framework, its not documented yet, so Reflector.exe is your best option here (as usual). Here is how I got a descent Wizard to work: public partial class WizardFrm : Microsoft.WizardFramework.WizardForm public partial class Page1 : Microsoft.WizardFramework.WizardPage Now in the WizardFrm's ctor add your WizardPages like this: public WizardFrm()
WizardFrm frm = new WizardFrm(); Now when you design the individual WizardPages set the 'infoPanel.Dock' to Fill, this will let you add your controls to the wizard page. Set the WizardPage.StepTitle to a description that this WizardPage represents. I was not able to find any Events like OnNext, OnPrev etc. This makes it hard to validate a WizardPage there by defeating the whole purpose of a Wizard...I am sure that deep down in the WizardForm or in the 'NavigationButtonBar' its possible to catch these events ...I didn't proceed that far for now. I wonder why this WizardFramework isn't documented, I sure do hope they make it official ...I have been missing that Wizard since the good old MFC days. contact me if you need the sourcecode. "One of the secrets of life is to make stepping stones out of stumbling blocks" |
Microsoft.WizardFramework.dll
最新推荐文章于 2021-08-16 00:29:07 发布