当前位置:MCPD(70-511)题库

问题:

[单选]

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

作业审批合格后,发给作业证() 明确作业时间和作业监护人。 明确作业时间,参加作业人员,作业分工以及指定作业负责人。 明确作业时间,参加作业人员,作业分工以及指定作业负责人和作业监护人。 明确作业时间,参加作业人员,作业分工。 对两个关系按照一方的主码进行等值连接,在其运算结果的关系中,其元组个数必然小于等于原有两个关系中的元组个数之和。 关于节能的产业政策,下列说法错误的是()。 国家限制发展高耗能、高污染行业。 国家不鼓励企业制定严于国家标准的企业节能标准。 国家对落后的耗能过高的生产工艺实行淘汰制度。 禁止使用国家明令淘汰的用能设备、生产工艺。 法人投资是指法人单位以资产投入企业的行为 在Access的窗体中,绑定型控件主要起到信息提示和美化窗体的作用。

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

参考答案:

  参考解析

本题暂无解析

在线 客服