﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Enhancement Requests  » WizardControl PageActivated Event</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 02:02:45 GMT</lastBuildDate><ttl>20</ttl><item><title>WizardControl PageActivated Event</title><link>http://forum.strataframe.net/FindPost3759.aspx</link><description>The WizardControl PageActivated event (which is distinct from the WizardPage PageActivated event) passes the PreviousPage as a property in the PageEventArgs.&lt;/P&gt;&lt;P&gt;Well and good, but it would be nice to have the CurrentPage as a property in the PageEventArgs as well. Why?&lt;/P&gt;&lt;P&gt;Generally, it could provide a way to consolidate PageActivated handling in a single method for all the pages versus implementing PageActivated for each individual WizardPage. I'm not talking about having a huge switch &amp;amp; case statement, although there are cases where that would be preferred to a bunch of individual methods (I suppose). I'm more talking about situations where the data I need is already a property of the WizardPage itself and I could write one generic handler for a PageActivated events.&lt;/P&gt;&lt;P&gt;Specifically, in my wizard, I am collecting data points for a BO and populating it gradually through the pages of the wizard. Because it's fairly complicated, I am also providing RTF instructions along with each step. Each WizardPage has an RTF control that I want to bind to a WizardInstructionsBO, which has only two fields: WizardPageName (key), and InstructionsRTF.&lt;/P&gt;&lt;P&gt;I can't bind the RTF controls on the WizardPages to the primary BO because they are not distinct values in the primary BO. I could have a dozen RTF fields in the primary BO that would be identical for every row, but that seems a waste...&lt;/P&gt;&lt;P&gt;Anyway, having the CurrentPage passed as part of PageEventArgs would make this and similar scenarios easier to handle, and I have to believe this would be an easy change in the framework as well.&lt;/P&gt;&lt;P&gt;Thanks!</description><pubDate>Sun, 22 Oct 2006 11:52:25 GMT</pubDate><dc:creator>Chris Crabtree</dc:creator></item><item><title>RE: WizardControl PageActivated Event</title><link>http://forum.strataframe.net/FindPost3777.aspx</link><description>Good deal!&amp;nbsp; :)</description><pubDate>Sun, 22 Oct 2006 11:52:25 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: WizardControl PageActivated Event</title><link>http://forum.strataframe.net/FindPost3771.aspx</link><description>Yep, I was trying to handle within the WizardControl, and I now see the CurrentPage property. That works perfectly! Thanks!&lt;BR&gt;</description><pubDate>Sun, 22 Oct 2006 11:26:07 GMT</pubDate><dc:creator>Chris Crabtree</dc:creator></item><item><title>RE: WizardControl PageActivated Event</title><link>http://forum.strataframe.net/FindPost3768.aspx</link><description>Chris,&lt;/P&gt;&lt;P&gt;I am more than willing to accomodate you on this but I do not see the point.&amp;nbsp; Let me explain...if you are handling the PageActivated event within the page itself, the current page would just be (Me) or (this).&amp;nbsp; It would be itself.&amp;nbsp; If you are handling the PageActivated event of the wizard control, all you need to do is reference the CurrentPage property of the wizard control:&lt;/P&gt;&lt;P&gt;this.WizardControl.Currentpage&lt;/P&gt;&lt;P&gt;Let me know if this does not meet your needs.</description><pubDate>Sun, 22 Oct 2006 11:17:38 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>