Unabridged Pass4sure Microsoft 70-511 PDF Dumps Free Download (191-200)

QUESTION 191
You use Microsoft .NET Framework 4 to create a Windows Forms application. You write the following code segment. (Line numbers are included for reference only.)
01 NotInheritable Class FormSettings
02 Inherits ApplicationSettingsBase 03
04 Public Property Description() As [String]
05 Get
06 Return DirectCast(He("Description"), [String])
07 End Get
08 Set
09 Me("Description") -value
10 End Set
11 End Property
12 End Class
You need to ensure that the first time each user opens the application, a text field displays the following message: "Please enter your setting."
Which code segment should you insert at line 03?

A.    <UserScopedSetting() >
<DefaultSettingValue("Please enter your setting.")>
B.    <UserScopedSetting()>
<SettingsDescription("Description: Please enter your setting.")>
C.    <ApplicationScopedSetting()>
<DefaultSettingValue("Please enter your setting.")>
D.    <ApplicationScopedSetting()>
<SettingsDescription("Description: Please enter your setting.")>

Answer: A

QUESTION 192
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a custom control named Wheel. You need to ensure that the Speed property of Wheel can be animated. What should you do?

A.    Inherit the DependencyObject class.
B.    Declare the Speed property as a dependency property.
C.    Declare an animation of the Speed property from within the code-behind file.
D.    Implement the System.Windows.Media.Animation.IAnimatable interface with the Wheel class.

Answer: B

QUESTION 193
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the drag-and-drop functionality. You need to ensure that the drag- and-drop operation is stopped when a user moves the cursor outside the boundaries of the application form Which enumeration member should you use?

A.    DragAction.Cancel
B.    DragAction.Drop
C.    DragDropEffects.None
D.    DragDropEffects.All

Answer: A

QUESTION 194
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the background worker process (BWP). When the user clicks a button, the background worker executes a method named DoCalculations asynchronously.
You need to implement a progress bar on the user interface (UI) that Informs the user of the progress of DoCalculations.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

A.    Modify the Value property of the progress bar in DoCalculations.
B.    Modify the Value property of the progress bar in the ProgressChanged event handler of the background worker.
C.    Modify the Value property of the progress bar in the RunWorkerCompleted event handler of the background worker.
D.    Call the ReportProgress method of the background worker in DoCalculations.
E.    Call the ReportProgress method of the background worker in the DoWork event handler of the background worker.

Answer: BD

QUESTION 195
You are developing a Windows Presentation Foundation (WPF) application to display service cases by category in a ListBox You create a class named Case with the properties Description and Category, as follows.
1951
You bind to the IstService control a static resource named ServiceCases. You need to ensure that the service cases are grouped by category.
What should you do in the MainWindow.xaml file?

A.    Add the following markup segment to ListBox.Binding.
<ListBox.BindingGroup>
<BindlngGroup Name="Category"/>
</ListBox.BindingGroup>
B.    Add the following markup segment to DockPanel.Binding.
<DockPanel.BindingGroup>
<BindingGroup Name="Category">
</DockPanel.BindingGroup>
C.    Add the following markup segment to CollectionViewSource.
<CollectionViewSource.GroupDescriptions>
<dataPropertyGroupDescription PropertyName="Category"/> </CollectionViewSource.GroupDescripcion">
D.    Add the following markup segment to CollectionViewSource.
<CollectionViewSource.GroupDescriptions/>

Answer: C

QUESTION 196
You are developing a Windows Presentation Foundation (WPF) application for managing student information. You place a Button control named btnSort and a DataGrid control named dgStudents on the design surface of the MainWindow.xaml file. You create a Student class with two properties:
FirstName and LastName. You create the following code segment in the constructor of the main window.
1961
The DataGrid control displays the list of students unsorted. You need to ensure that the list of students is sorted by last name. Which code segment should you add to the click event handler of the Button control?

A.    Dim sortedStudents As IEnnumerable(Of Student) =
Students.OrderBy(Function(s) s.LastName).ToList()
dgstudents.ltemssource = sortedStudents
B.    Students.Sort()
dgStudents.ItemsSource = Students
C.    Dim sortedStudents As IEnumerable(Of Student)
Students.orderBy (Function (s) s.LastName)
dgStudents.ItemsSource = sortedStudents
D.    Students.Reversed
dgStudents.ItemsSource = Students

Answer: A

QUESTION 197
You are developing a windows Presentation Foundation (WPF) application. A TextBlock control has DataContext bound to a static resource named Book. The ToolTip attribute of TextBlock displays the full book titles.
You create a converter named TrimTitleConverter to shorten the book titles to three words in the Text attribute of the TextBox. You add the converter to the Resources section of the MainWindow.xaml file as follows. (Line numbers are included for reference only.)
1971
You need to ensure that the shortened book titles appear only in the Text attribute of TextBlock. Which markup segment should you use to replace lines 06 through 09?

A.    <TextBlock
ToolTip="{Binding Title}"
Text-"(Binding RelativeSource=
{RelativeSource TemplatedParent}, Path-ToolTip,
Converter"(StaticReaource ResourceKey TrlmConverter})"
DataContext = "{StaticResource ResourceKey=Book}"/>
B.    <TextBlock
ToolTip="(Binding Title,
Converter=(StaticResource ResourceKey=TrimConverter})" Text-Bindnding RelativeSource=
{RelativeSaurce TemplatedParent}, Path-ToolTip)" DataContext-"{StaticResource ResourceKey-Boolc) "/>
C.    <TextB1ock
ToolTip="{Binding Title,
Converter = {StaticResource ResourceKey=TrimConverter}}" Text="(Binding RelativeSource=
{Relativesource self}, Path"ToolTip}" DataContext="{StaticResource ResourceKey-Book}"/>
D.    <TextBlock
ToolTip-"{Binding Title}"
Text="{Binding RelativeSource=
{RelativeSource Self}, Path=ToolTip,
Converter=<StaticResource ResourceKey=TrimConverter}}"
DataContext="(StaticResource ResourceKey=Book}"/>

Answer: D

QUESTION 198
You are developing a Windows Presentation Foundation (WPF) application. You are writing data templates for a calendar.
You must use the Weekend template for weekends and the Weekday template for weekdays. The Window markup is as follows. (Line numbers are included for reference only.)
1981
You need to ensure that the Weekend and Weekday templates are applied correctly to the ListBox control.
Which markup segment should you insert at line 11?

A.    <ListBox ItemTemplateSelector="{Binding WeekendSelector}"/>
B.    <ListBox ItemTemplate="{StaticResource WeekendSelector} "/>
C.    <ListBox ItemTemplate="{Binding WeekendSelector} "/>
D.    <ListBox ItemTemplateSelector="{StaticResource WeekendSelector}"/>

Answer: D

QUESTION 199
You are developing a Windows Presentation Foundation (WPF) application to display loan types by bank and students by loan type. You add the following markup segment to the MainWindow.xaml file. (Line numbers are included for reference only.)
1991
1992
You need to ensure that the data appears in hierarchical form in a TreeView control.
What should you do?

A.    At line 09, set the Resource Key to LoanList.
A: lire 15, set the Resource Key to Students.
B.    At line 09, set the Resource Key to Students.
At line 15, set the Resource Key to LoanList.
C.    At line 09, set the Resource Key to Lender.
At line 15, set the Resource Key to BankList.
D.    At line 09, set the Resource Key to BankList.
At line 15, set the Resource Key to Lender.

Answer: B

QUESTION 200
You are developing a Windows Presentation Foundation (WPF) application. The application contains a converter named DateOutputConverter that formats dates. The window is defined as follows. (Line numbers are included for reference only.)
2001
The window must display the OrderDate value found in shippedOrder. The text box must display the OrderDate formatted by the DateOutputConverter.
You need to ensure that the OrderDate is displayed and formatted correctly. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

A.    insert the following code at line 10.
<textBox Text="{Binding OrderDate}"/>
B.    Insert the following code at line 07.
<m:DataOutputConverter x:Key"DataOutputConverter"/>
C.    Insert the following code at line 10.
<textBox Text="{Binding OrderDate,
Converter={StaticResource internationalDateConverter}}"
DataContext.="{StaticResource ResourceKey=shippedOrder}"/>
D.    Insert the following code at line 07.
<m:DateOutputConverter x:Key="internationalDateConverter"/>

Answer: CD

Unabridged Pass4sure Microsoft 70-511 PDF Dumps Free Download