Wizard in WinForms ElementHost

Wizard for WPF Forum

Posted 15 years ago by Ales Ruda
Version: 4.5.0486
Avatar
Hi,
I am new in Actipro Wizard control. My Winform application hosts WPF controls in ElementHost and Wizard does not work right. All wizard buttons (next, back, finish, ...) does not change their state (IsEnabled). I use Stack mode and on second page Back button is allways disabled. If I try use exactly same wizard in WpfWindow its works OK.

Have anybody solution of this problem?

Thanks


Ales

Comments (2)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Ales,

We don't really test the use of the WPF control in Windows Forms applications. If you'd like us to look, you can email our support address with a simple sample project that shows the problem.

Or, maybe look into using our WinForms Wizard control instead.


Actipro Software Support

Posted 15 years ago by Ales Ruda
Avatar
Hi,
I found soulion. The problem was in startup code of hybrid application. I use global application resources defineed in app.xaml. Previousli I start WinForm application on StartUp event of Wpf aplication. But wizard control does not work.

Working startaup code is:

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        public static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // new instance of wpf application
            App app = System.Windows.Application.LoadComponent(
                                new Uri("App.xaml",
                                UriKind.Relative)) as App;

            Application.Run(new Forms.Dialogs.Mdi());
        }
The latest build of this product (v24.1.2) was released 1 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.