You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You plan to create a window that has a layout as shown in the following exhibit. You need to define the code fragment to create the window layout. Which code fragment should you use?
A.
<StackPanel Orientation=”Vertical” Background=”Gainsboro”> <TextBlock Text=”Name:” /> <TextBox VerticalAlignment=”Top” /> <TextBlock Text=”Password:” /> <TextBox VerticalAlignment=”Top” /> <Button HorizontalAlignment=”Center” VerticalAlignment=”Center” Width=”100″ Content=”Submit” /></StackPanel>
B.
<Grid Background=”Gainsboro”> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition/> <RowDefinition/> </Grid.RowDefinitions> <TextBlock Text=”Name:” Grid.Row=”0″/> <TextBox VerticalAlignment=”Top” Grid.Row=”0″ /> <TextBlock Text=”Password:” Grid.Row=”1″/> <TextBox VerticalAlignment=”Top” Grid.Row=”1″ /> <Button HorizontalAlignment=”Center” VerticalAlignment=”Center” Width=”100″ Content=”Submit” Grid.Row=”2″/> </Grid>
C.
<UniformGrid Rows=”3″ Columns=”1″ Background=”Gainsboro”> <TextBlock Text=”Name:” /> <TextBox VerticalAlignment=”Top” /> <TextBlock Text=”Password:” /> <TextBox VerticalAlignment=”Top” /> <Button HorizontalAlignment=”Center” VerticalAlignment=”Center” Width=”100″ Content=”Submit” /> </UniformGrid>
D.
<UniformGrid Rows=”5″ Background=”Gainsboro”> <TextBlock Text=”Name:” /> <TextBox VerticalAlignment=”Top” /> <TextBlock Text=”Password:” /> <TextBox VerticalAlignment=”Top” /> <Button HorizontalAlignment=”Center” VerticalAlignment=”Center” Width=”100″ Content=”Submit” /> </UniformGrid>
cheap yellow jersey cheap nfl jerseys 99