搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. <br /> You create a window that contains a Button control and a MenuItem control. Both controls are labeled "Add sugar." <br /> The Command properties of the Button and MenuItem controls are set to the same RoutedCommand named AddSugarCommand.<br /> You write the following code segment. <br /> private void CanAddSugar (object sender, CanExecuteRoutedEventArgs e) { ... }<br /> You need to ensure that when the CanAddSugar method sets e.CanExecute to false, the MenuItem and Button controls are disabled. <br /> What should you do?()

A、 Create an event handler for the CanExecuteChanged event of the AddSugarCommand command.   Call the CanAddSugar method from within the event handler.

B、 Inherit the AddSugarCommand from the RoutedUICommand class instead of the RoutedCommand class.   Call the CanAddSugar method from within the constructor of the AddSugarCommand command.

C、 Add a CommandBinding object to the CommandBinding property of the MenuItem control.   Set the CanExecute property of the CommandBinding object to the CanAddSugar method. 

D、 Add a CommandBinding object to the CommandBindings property of the window.   Set the Command property of CommandBinding to the AddSugarCommand command.   Set the CanExecute  property of the CommandBinding object to the CanAddSugar method.

更多“ You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. <br /> You create a window that contains a Button control and a MenuItem control. Both controls are labeled "Add sugar." <br /> The Command properties of the Button and MenuItem controls are set to the same RoutedCommand named AddSugarCommand.<br /> You write the following code segment. <br /> private void CanAddSugar (object sender, CanExecuteRoutedEventArgs e) { ... }<br /> You need to ensure that when the CanAddSugar method sets e.CanExecute to false, the MenuItem and Button controls are disabled. <br /> What should you do?()”相关的问题
第2题

A、Microsoft Application Virtualization Sequencer  B、Microsoft Application Virtualization Desktop Client  C、Microsoft System Center Application Virtualization Streaming Server  D、Microsoft System Center Application Virtualization Management Server  

点击查看答案
第3题

A、Microsoft Application Virtualization Sequencer  B、Microsoft Application Virtualization Desktop Client  C、Microsoft System Center Application Virtualization Streaming Server  D、Microsoft System Center Application Virtualization Management Server  

点击查看答案
第7题

A、Use the AsOrdered method.  B、Use the SelectMany method.  C、Use the AutoBuffered option in the WithMergeOptions method.  D、Use the WithExecutionMode method with the ParallelExecutionMode.ForceParallelism parameter.  

点击查看答案
第8题

A、A.Use the AppVCacheSize tool to set the maximum cache size to 0.  B、B.Use the AppVCacheSize tool to set the minimum free disk space threshold to 0.  C、C.Set the HKLM \ SOFTWARE \ Microsoft \ SoftGrid \ 4.5 \ Client \AppFS\ State registry key to 0.  D、D.Set the HKLM \ SOFTWARE \ Microsoft \ SoftGrid \ 4.5 \ Client \AppFS\ FileSize registry key to 0.  

点击查看答案
第9题

A、Reload the virtual application package.  B、Reinstall the virtual application package.  C、Use the Repair function in the Windows Installer Package. Use the Microsoft Application Virtualization (App-V) to re-sequence the application.  D、Use the Microsoft Application Virtualization (App-V) Sequencer to edit the virtual application package.  

点击查看答案
第10题

A、Use IntelliTrace.  B、Use PresentationTraceSource.  C、Run the application in debug mode with Visual Studio 2010. Use the Auto window while you step through the application code.  D、Run the application in debug mode with Visual Studio 2010. Use the WPF Visualizer while you step through the application code.  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服