Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Developing wizard UI - WPF

All in WPF:

Developing a wizard application, user has to answer a number of simple questions before brought to the main app. The main app is then prefilled with the information obtained from the wizard.

I started with a Window which I then planned to add usercontrols to. The main window would have the user control in the first row, then Next and Previous buttons to control moving between the controls in the second row. This way I could easily control the logic to switch between screens like:

WizardControl1.IsVisible = false;
WizardControl2.IsVisible = true;

But for some reason, user controls do not have setter for IsVisible. Hurray.

So then I thought I would just use seperate windows for each section of the wizard. The problem with this approach is that now when stepping between, the window opens in random positions, and by steppign through the wizard with next, the next window pops up randomly which is really distracting and frustrating.

So how can I develop a wizard properly? I don't get why this is so hard...not exactly rocket science... replacing text and controls and storing input after pressing next/previous!

Thanks

like image 498
baron Avatar asked Jan 27 '10 03:01

baron


People also ask

What is WPF and where should I start?

Where should I start? Windows Presentation Foundation (WPF) is a UI framework that creates desktop client applications. The WPF development platform supports a broad set of application development features, including an application model, resources, controls, graphics, layout, data binding, documents, and security.

Is it possible to create a wizard in WPF?

Check This link. you can create wonderful wizard using extended wpf toolkit. Show activity on this post. Found this great example on codeproject that should give you everything that you need: Show activity on this post. MVVM Wizard - Usage like this (Requires DI container, views are created on first navigation)

What is WPF programming language?

It is a subset of the .NET Framework, so if you have previously built applications with the .NET Framework using ASP.NET or Windows Forms, the programming experience should be familiar. WPF uses the Extensible Application Markup Language (XAML) to provide a declarative model for application programming.

How can I Create Wizard without using Git?

This sample illustrates how to create wizard, using a Window, a Frame, and several Page objects. The easiest way to use these samples without using Git is to download the zip file containing the current version (using the link below or by clicking the "Download ZIP" button on the repo page).


Video Answer


2 Answers

Check this link: http://www.codeproject.com/KB/WPF/InternationalizedWizard.aspx This is the article about building wizard in WPF by Josh Smith, it's seems to be nice pattern. I found it's helpful for me, hope you'll too.

like image 161
klement Avatar answered Sep 22 '22 12:09

klement


There is also an open source Avalon Wizard control on codeplex.

like image 33
Pavel Avatar answered Sep 20 '22 12:09

Pavel