1. <li id="pbdac"></li>

        1. <label id="pbdac"><xmp id="pbdac">
          1. 聯(lián)系客服微信掃一掃關(guān)注公眾號(hào)后聯(lián)系客服
            掃碼練習(xí)微信掃碼免費(fèi)搜題
            • 首頁(yè)

            • 題庫(kù)

            • 網(wǎng)課

            • 在線模考

            • 桌面端

            登錄
            • 搜標(biāo)題
            • 搜題干
            • 搜選項(xiàng)
            單項(xiàng)選擇題

            You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. 
            You want to add an audio player that plays .wav or .mp3 files when the user clicks a button.  
            You plan to store the name of the file to a variable named SoundFilePath. 
            You need to ensure that when a user clicks the button, the file provided by SoundFilePath plays. 
            What should you do?()

            A. Write the following code segment in the button onclick event.     System.Media.    SoundPlayer player = new System.Media.    SoundPlayer(SoundFilePath); player.play();
            B. Write the following code segment in the button onclick event.    MediaPlayer player = new MediaPlayer();     player.Open(new URI(SoundFilePath),    UriKind.Relative)); player.play();
            C. Use the following code segment from the PlaySound()    Win32 API function and call the PlaySound function in the button onclick event.    [sysimport(dll="winmm.dll")]     public static extern long PlaySound(String SoundFilePath, long hModule, long dwFlags);
            D. Reference the Microsoft.DirectX Dynamic Link Libraries.     Use the following code segment in the button onclick event.     Audio song = new Song(SoundFilePath);     song.CurrentPosition = song.Duration; song.Play();

            題目列表

            你可能感興趣的試題

            • 單項(xiàng)選擇題

              You create a Windows client application by using Windows Presentation Foundation (WPF). 
              The application contains the following code fragment.

              You need to assign lbDetails to use the detail data template when btnDetails is clicked. 
              Which code segment should you write for the click event handler for btnDetails?()

              A. lbDetails.ItemsPanel.FindName("detail",lbDetails);
              B. var tmpl = (ControlTemplate)FindResource("detail");    lbDetails.Template = tmpl; 
              C. var tmpl = (DataTemplate)FindName("detail");    lbDetails.ItemTemplate = tmpl;
              D. var tmpl = (DataTemplate)FindResource("detail");    lbDetails.ItemTemplate=tmpl;

            • 單項(xiàng)選擇題

              You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The
              application has a window named MainWindow that has a StackPanel control named sp as the root element. 
              You want to create a Button control that contains a TextBlock control with the "Save" Text property. 
              You need to create the control dynamically and add the control to sp. 
              Which code segment should you write in the constructor of the MainWindow class?()

              A.
              B.
              C.
              D.

            掃碼聯(lián)系掃碼聯(lián)系在線客服
            反饋使用問(wèn)題
            掃碼練習(xí)掃碼使用找答案小程序
            手機(jī)搜題/刷題/上網(wǎng)課

            版權(quán)所有?考試資料網(wǎng)(ppkao.com) 長(zhǎng)沙求知信息技術(shù)有限公司 All Rights Reserved

            湘公網(wǎng)安備 43010202000353號(hào)備案號(hào): 湘ICP備14005140號(hào)-2

            經(jīng)營(yíng)許可證號(hào) : 湘B2-20140064

            • 聯(lián)系客服
            • 小程序
            • 桌面端下載
            • 回到頂部

            感谢您访问我们的网站,您可能还对以下资源感兴趣:

            国产黄色视屏