nerdexam
Microsoft

70-573 · Question #13

You need to create a Web Part that hides the out-of-the-box Ribbon on the current page. Which code segment should you include in the Web Part?

The correct answer is A. SPRibbon.GetCurrent(me.Page).CommandUIVisible = false. MNEMONIC RULE: "CommandUIVisible" There are two parts to the ribbon: the upper part, where other controls such as site actions can be put, and theCommandUI part that has the buttons and controls. This property controls the lower part of the ribbon. So, ifthis property is set to…

Developing for User Experience

Question

You need to create a Web Part that hides the out-of-the-box Ribbon on the current page. Which code segment should you include in the Web Part?

Options

  • ASPRibbon.GetCurrent(me.Page).CommandUIVisible = false
  • BSPRibbon.GetCurrent(me.Page).Dispose()
  • Cthis.Page.FindControl("SPRibbon").Dispose()
  • Dthis.Page.FindControl("SPRibbon").Visible = false

How the community answered

(20 responses)
  • A
    75% (15)
  • B
    15% (3)
  • C
    5% (1)
  • D
    5% (1)

Explanation

MNEMONIC RULE: "CommandUIVisible" There are two parts to the ribbon: the upper part, where other controls such as site actions can be put, and theCommandUI part that has the buttons and controls. This property controls the lower part of the ribbon. So, ifthis property is set to false, the site actions still appear in the upper part of the ribbon, but no tabs and buttonsappear in the lower part. Ribbon.CommandUIVisible Property

Topics

#Ribbon#SPRibbon#CommandUIVisible#Web Part

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice