可学答题网 > 问答 > MCPD(70-511)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You create a Windows client applicati


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
参考答案
参考解析:
分类:MCPD(70-511)题库
相关推荐

1、You are creating a Windows Communicati

You are creating a Windows Communication Foundation (WCF) service. You need to ensure that the service is compatible with ASP.NET to make use ...

2、You are creating a Windows Communicati

You are creating a Windows Communication Foundation (WCF) service based on WSHttpBinding. New audit requirements dictate that callers must be aut...

3、You are creating a Windows Communicati

You are creating a Windows Communication Foundation (WCF) service that responds using plain-old XML (POX).You have the following requirements: You...

4、You are creating a client application

You are creating a client application and configuring it to call a Windows Communication Foundation (WCF) service.When the application is deploye...

5、You are creating a Windows Communicati

You are creating a Windows Communication Foundation (WCF) service that accepts claims-based tokens. You need to ensure that the service can use...

6、You upgrade a Windows Forms applicati

You upgrade a Windows Forms application to Microsoft .NET Framework 4. The application was developedby using a previous version of the .NET Fra...