nerdexam
Microsoft

70-511 · Question #268

You are develping a Windows Presentation Foundation (WPF) application. You plan to deploy the WPF application by using ClickOnce. The application will be associated to files that have an extension…

The correct answer is B. txtBlock1.Text = AppDomain. CurrentDomain.Setup Information. See the full explanation below for the reasoning.

Question

You are develping a Windows Presentation Foundation (WPF) application. You plan to deploy the WPF application by using ClickOnce. The application will be associated to files that have an extension of .abc. You need to ensure that when a user opens the application by double-clicking an .abc file, a TextBlock named txtBlockl displays the path of the file. Which code should you use?

Options

  • AtxttBlock1.Text = App.Current.Properties["FilePath"].ToString();
  • BtxtBlock1.Text = AppDomain. CurrentDomain.Setup Information.
  • CtxtBlock1.Text = DataContext .ToString ();
  • DtxttBlock1.Text = App.Current.Properties["ActivationData"].ToString();

How the community answered

(22 responses)
  • A
    5% (1)
  • B
    77% (17)
  • C
    5% (1)
  • D
    14% (3)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice