StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Adding Wizard pages dynamicallyExpand / Collapse
Author
Message
Posted 11/21/2006 12:57:24 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Yesterday @ 12:10:08 PM
Posts: 1,327, Visits: 3,471
I have a rather complicated wizard (simplifying a truly scary process) and I need to add pages to it dynamically. This I think I figured out, just use the Add method of the PagesCollection. However, can I set the position of the wizard page? I.e. insert before or after an existing page? Or change its position after it has been added? I don't see any methods or properties that would seem to indicate this can be done.

Second, some of the pages I'll be adding dynamically will be template pages that when I actually add them, I'll need to customize them based on some data. I'm assuming that just providing constructors with arguments to pass in the necessary data and then configure the template would work right?

Thanks!
Post #4701
Posted 11/21/2006 3:54:15 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 1:09:23 PM
Posts: 2,686, Visits: 1,888
You cannot change the index of a page once it has been added to the collection, but you can remove it and re-add it using the Insert() method of the WizardPageCollection class, so you can insert the page wherever you want.

As for templating your pages, yes it will work just fine... the pages are just panels with some extra properties.


www.bungie.net
Post #4710
Posted 11/21/2006 4:11:32 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Yesterday @ 12:10:08 PM
Posts: 1,327, Visits: 3,471
Insert...that was what I was looking for. However, I might jump over to the enhancement area and make a request to allow reordering of wizard pages from the designer. Thanks!
Post #4711
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 10:31am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.