Top 16 software 70-502(CSharp) for candidates (65 to 80)

70-502(CSharp) Royal Pack Testengine pdf

100% Actual & Verified — 100% PASS

Unlimited access to the world's largest Dumps library! Try it Free Today!

Get it now →

Product Description:
Exam Number/Code: 70-502(CSharp)
Exam name: TS: MS.NET Frmewrk3.5, Wndws Presentation Fndation App Dev
n questions with full explanations
Certification: Microsoft Certification
Last updated on Global synchronizing

Free Certification Real IT 70-502(CSharp) Exam pdf Collection

Real of 70-502(CSharp) training materials and practice for Microsoft certification for examinee, Real Success Guaranteed with Updated 70-502(CSharp) pdf dumps vce Materials. 100% PASS TS: MS.NET Frmewrk3.5, Wndws Presentation Fndation App Dev exam Today!

2016 Mar 70-502(CSharp) Study Guide Questions:

Q65. You are creating a Windows Presentation Foundation application. You create a window for the application. 

The application contains an audio file named AudioFileToPlay.wav. 

You need to ensure that the following requirements are met: 

 The audio file is played each time you click the client area of the window. 

 The window provides optimal performance when the audio file is being played. 

What should you do? 

A.

06        <SortDescription PropertyName="Make" /> 

07     </CollectionViewSource.SortDescriptions> 

08   </CollectionViewSource>

09 </Window.Resources> 

You receive the following error message: "Type 'SortDescriptions' was not found." 

You need to ensure that the XAML code fragment sorts the list of available cars correctly. 

What should you do? 

A.

B.

C.

D.

Answer: B


Q77. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.

The application-definition file contains the following XAML code fragment. 

<Application.Resources> 

  <Style x:Key="ContentControlStyle"> 

    <Setter Property="ContentControl.Background" Value="Magenta" /> 

  </Style> 

</Application.Resources> 

You add a window to the application. The window definition includes the following XAML code fragment. 

<Window.Style> 

  <Style> 

    <Setter Property="Button.Background" Value="Green" /> 

  </Style> 

</Window.Style> 

<Button Content="Open" Background="Yellow" > 

  <Button.Style> 

    <Style> 

      <Setter Property="Button.Background" Value="Blue" /> 

    </Style> 

  </Button.Style> 

</Button> 

You need to identify the background color of the Button control. 

Which color should you choose? 

A. Blue 

B. Green 

C. Yellow 

D. Magenta 

Answer: C


Q78. You are converting a Windows Forms application to a Windows Presentation Foundation (WPF) application. You use Microsoft .NET Framework 3.5 to create the WPF application.

The WPF application will reuse 30 forms of the Windows Forms application. The WPF application contains the following class definition. 

public class OwnerWindow : System.Windows.Forms.IWin32Window  

{

  private IntPtr handle_Renamed;

  public IntPtr Handle

  {

    get { return handle_Renamed ; } 

    set { handle_Renamed = value ; } 

  } 

You write the following code segment in the WPF application.

(Line numbers are included for reference only.) 

01 public System.Windows.Forms.DialogResult LaunchWindowsFormsDialog(System.Windows.Forms.Form dialog, Window wpfParent)

02 {

03   System.Windows.Interop.WindowInteropHelper  helper = new System.Windows.Interop.WindowInteropHelper(wpfParent) ;

04   OwnerWindow  owner = new OwnerWindow() ;

05 

06 } 

You need to ensure that the application can launch the reusable forms as modal dialogs. 

Which code segment should you insert at line 05? 

A. owner.Handle = helper.Owner;

DialogResult db = new DialogResult();

return db;

B. owner.Handle = helper.Owner

return dialog.ShowDialog(owner);

C. owner.Handle = helper.Owner ;

Nullable<bool> result = wpfParent.ShowDialog();

if (result.HasValue)

{

  if (result.value)

    return System.Windows.Forms.DialogResult.OK;

  else

    return System.Windows.Forms.DialogResult.Cancel;

}

else 

  return System.Windows.Forms.DialogResult.Cancel;

D. owner.Handle = helper.Handle:

Nullable<bool> result = wpfParent.ShowDialog();

if (result.HasValue)

{

  if (result.value)

    return System.Windows.Forms.DialogResult.OK;

  else

    return System.Windows.Forms.DialogResult.Cancel;

}

else 

  return System.Windows.Forms.DialogResult.Cancel;

}

Answer: B


Q79. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5. 

You write the following XAML code fragment. 

01 <StackPanel.Resources> 

02   <ControlTemplate x:Key="buttonTemplate" TargetType="{x:Type Button}"> 

03     <Grid> 

04       <Rectangle x:Name="buttonBackground" Width="100" Height="30" Fill="Blue" /> 

05       <WrapPanel> 

06         <Image x:Name="buttonImage" Width="20" Height="20" Source="buttonImage.jpg" /> 

07         <ContentPresenter Margin="10" /> 

08       </WrapPanel> 

09     </Grid> 

10 

11 </ControlTemplate> 

14 </StackPanel.Resources> 

You plan to apply the buttonTemplate template to 20 buttons. You need to ensure that a sound file named soundFile.wav is played when the user moves the mouse pointer over the image on any of the 20 buttons. 

Which XAML code fragment should you insert at line 10? 

A. <ControlTemplate.Triggers> 

  <EventTrigger SourceName="buttonImage" RoutedEvent="MouseEnter"> 

    <EventTrigger.Actions> 

      <SoundPlayerAction Source="soundFile.wav" /> 

    </EventTrigger.Actions> 

  </EventTrigger>

</ControlTemplate.Triggers> 

B. <ControlTemplate.Triggers> 

  <EventTrigger SourceName="buttonImage" RoutedEvent="MouseEnter"> 

    <EventTrigger.EnterActions> 

      <SoundPlayerAction Source="soundFile.wav" /> 

    </EventTrigger.EnterActions> 

  </EventTrigger>

</ControlTemplate.Triggers> 

C. <ControlTemplate.Triggers> 

  <EventTrigger RoutedEvent="MouseEnter"> 

    <EventTrigger.EnterActions> 

      <SoundPlayerAction Source="soundFile.wav" /> 

    </EventTrigger.EnterActions> 

  </EventTrigger>

</ControlTemplate.Triggers> 

D. <ControlTemplate.Triggers> 

  <EventTrigger RoutedEvent="MouseEnter"> 

    <EventTrigger.Actions> 

      <SoundPlayerAction Source="soundFile.wav" /> 

    </EventTrigger.Actions> 

  </EventTrigger>

</ControlTemplate.Triggers> 

Answer: A


Q80. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.

You plan to use the application to preview video files. You write the following XAML code fragment. 

01 <Window x:Class="myClass" xmlns= "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="myWindow" Height="300" Width="300"> 

02   <StackPanel Background="Black"> 

03 

04     <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"> 

05       <Button Name="btnPlay" Margin="10" Content="Play" /> 

06     </StackPanel> 

07 

08   </StackPanel> 

09 </Window> 

You need to ensure that the application plays only the first 10 seconds of a video that you want to preview. 

Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) 

A. Insert the following XAML fragment at line 03. 

<MediaElement Name="myMediaElement" Stretch="Fill" /> 

B. Insert the following XAML fragment at line 03. 

<MediaElement Name="myMediaElement" Source="MediaFileSelected.wmv" Stretch="Fill" /> 

C. Create the following method in the code-behind file. 

public void PlayMedia(object sender, RoutedEventArgs args)

{

  myMediaElement.Play();

D. Insert the following XAML fragment at line 07. 

<StackPanel.Triggers> 

  <EventTrigger RoutedEvent="Button.Click" SourceName="btnPlay"> 

    <EventTrigger.Actions> 

      <BeginStoryboard Name= "myBegin"> 

        <Storyboard SlipBehavior="Slip"> 

          <MediaTimeline Source="MediaFileSelected.wmv" Storyboard.TargetName="myMediaElement" BeginTime="0:0:0" Duration="0:0:10" /> 

        </Storyboard> 

      </BeginStoryboard> 

    </EventTrigger.Actions> 

  </EventTrigger>

</StackPanel.Triggers> 

E. Insert the following XAML fragment at line 07. 

<StackPanel.Triggers> 

  <EventTrigger RoutedEvent="Button.Click" SourceName="btnPlay"> 

    <EventTrigger.Actions> 

      <BeginStoryboard Name= "myBegin"> 

        <Storyboard SlipBehavior="Slip"> 

          <MediaTimeline Storyboard.TargetName="myMediaElement" BeginTime="0:0:0" Duration="0:0:10" /> 

        </Storyboard> 

      </BeginStoryboard> 

    </EventTrigger.Actions> 

  </EventTrigger>

</StackPanel.Triggers> 

Answer: AD



see more 70-502(CSharp) - TS: MS.NET Frmewrk3.5, Wndws Presentation Fndation App Dev