nerdexam
Microsoft

70-354 · Question #31

Drag and Drop Question You are developing a Universal Windows Platform (UWP) app. You need to create a grid that has three rows and two columns. The grid must contain a button located at the first…

The solution shows the 'Answer Area' configured with the following XAML structure for a Grid, using 'Code Elements' like RowDefinition, ColumnDefinition, Button, Grid.Row, and Grid.Column: <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto"…

Manage project site content

Question

Drag and Drop Question You are developing a Universal Windows Platform (UWP) app. You need to create a grid that has three rows and two columns. The grid must contain a button located at the first row and the second column. How should you complete the code? To answer, drag the appropriate code elements to the correct targets. Each element may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

Explanation

The solution shows the 'Answer Area' configured with the following XAML structure for a Grid, using 'Code Elements' like RowDefinition, ColumnDefinition, Button, Grid.Row, and Grid.Column: <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Button Content="A button" Grid.Row="0" Grid.Column="1" /> </Grid>

Topics

#UWP#XAML Grid#rows and columns#button placement

Community Discussion

No community discussion yet for this question.

Full 70-354 Practice