nerdexam
Microsoft

70-354 · Question #30

Drag and Drop Question You are developing a Universal Windows Platform (UWP) app. The app will display a text box named TextBox1 and a button named Button2. If a user types in the text box, you need…

The solution involves arranging 'Code Elements' within a RelativePanel in the 'Answer Area' to achieve dynamic resizing and alignment. The visual solution indicates the following XAML-like structure and element placement: <TextBox x:Name="Home" Text="TextBox1" /> <Button…

Manage project site content

Question

Drag and Drop Question You are developing a Universal Windows Platform (UWP) app. The app will display a text box named TextBox1 and a button named Button2. If a user types in the text box, you need to ensure that the box is resized dynamically based on the size of the text. The buttons must always remain to the right of the text box and must always remain aligned. 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 involves arranging 'Code Elements' within a RelativePanel in the 'Answer Area' to achieve dynamic resizing and alignment. The visual solution indicates the following XAML-like structure and element placement: <TextBox x:Name="Home" Text="TextBox1" /> <Button x:Name="Button2" Content="Button2" RelativePanel.RightOf="TextBox1" RelativePanel.AlignBottomWith="TextBox1" /> <Button x:Name="Button3" Content="Button3" RelativePanel.RightOf="Button2" RelativePanel.AlignBottomWith="Button2" />

Topics

#UWP#XAML layout#dynamic resizing#StackPanel

Community Discussion

No community discussion yet for this question.

Full 70-354 Practice