I need to create wizard with 4 navigation pages and I wonder what is the best way to do it.how to do it right. Create window that include the 4 pages and the window will include the progress bar (which here is the buttons which should change the text to
bold... according to the step ) and the buttons for next and back ,and when for example the user press next I highlight the step button text for it (step 1 or 2 etc) and navigating to the nextpage which inside the main window between row *Height="34"** The following xaml show the structure and |
<Window x:Class="wizardTest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"Title="MainWindow"Height="350"Width="525"><Grid><Grid.RowDefinitions><RowDefinitionHeight="51*"/><RowDefinitionHeight="62*"/><RowDefinitionHeight="59*"/><RowDefinitionHeight="62*"/><RowDefinitionHeight="86*"/></Grid.RowDefinitions><Grid.ColumnDefinitions><ColumnDefinitionWidth="84*"/><ColumnDefinitionWidth="254*"/><ColumnDefinitionWidth="91*"/><ColumnDefinitionWidth="88*"/></Grid.ColumnDefinitions><ButtonContent="Step 1"HorizontalAlignment="Left"VerticalAlignment="Top"Width="83"Height="50"/><ButtonContent="Step 2"HorizontalAlignment="Left"Margin="-1,50,0,0"VerticalAlignment="Top"Width="84"Grid.RowSpan="2"Height="63"/><ButtonContent="Step 3"HorizontalAlignment="Left"VerticalAlignment="Top"Width="84"Grid.RowSpan="2"Height="63"Grid.Row="1"Margin="0,58,0,0"/><ButtonContent="Step 4"HorizontalAlignment="Left"Margin="0,58,0,0"VerticalAlignment="Top"Width="84"Grid.RowSpan="2"Height="63"Grid.Row="2"/><ButtonContent="Back"Grid.Column="2"HorizontalAlignment="Left"Margin="6,54,0,0"Grid.Row="4"VerticalAlignment="Top"Width="75"Height="22"/><ButtonContent="Next"Grid.Column="3"HorizontalAlignment="Left"Margin="0,54,0,0"Grid.Row="4"VerticalAlignment="Top"Width="75"Height="22"/></Grid></Window>