| Exam Code/Number: | 70-511Join the discussion |
| Exam Name: | TS: Windows Applications Development with Microsoft .NET Framework 4 |
| Certification: | Microsoft |
| Question Number: | 288 |
| Publish Date: | Oct 23, 2025 |
|
Rating
100%
|
|
You are developing a Windows Presentation Foundation (WPF) application. The application contains the following markup.
You need to ensure that the Filter combo box is hidden when the expander is collapsed. What should you do?
You are developing a Windows Presentation Foundation (WPF) application.
Users can enter formatted percentages into text boxes.
The markup is as follows.
<TextBox Text="{Binding Path=Percentage,
Converters StaticResource PercentValueConverter}}" />
Percentage is a decimal property.
You need to store the percentages as their decimal values, not their display values.
Which code segment should you use?
You are developing a Windows Presentation Foundation (WPF) application.
There is an issue in the display of Label. When you open the WPF Visualizer, you see the following information in the left-hand panel of the Visualizer.
You need to identify the XAML markup for the Label control that caused the issue.
Which markup segment corresponds to the Label control?
You are developing a Windows Presentation Foundation (WPF) application. The main window of the application is defined by the following markup.
<Grid ShoTJGridLines="True">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDeiinition />
</Grid.ColumnDef initions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RouDefinitions>
<TextBlock Grid.Row="0" HorizontalAlignment="Center">
Products Shipped</TextBlock>
<TextBlock Grid.Row="l" Grid.Column="0">
Quarter K/TextBlock>
<TextBlock Grid.Row="2" Grid.Column="0">
Quarter 2</TextBlock>
<TextBlock Grid.Row-"!" Grid.Column="l">
50000</TextBiock>
<TextBlock Grid.Row="2" Grid.Coluitin="l">
150000</TextBlock>
</Grid>
When the application is run, it appears as follows.
You need to ensure that the TextBlock control with the contents "Products Shipped" is horizontally centered on the Grid control.
Which markup segment should you add to the TextBlock control?
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You add a property named ServiceContext to a control.
You need the value of ServiceContext to flow to the child controls exactly like the value of the DataContext property of the FrameworkElement class.
What should you do?