nerdexam
Microsoft

70-573 · Question #215

You are creating an application. You develop a custom control that renders a contextual tab. The control contains the following code segment. (Line numbers are included for reference only.)…

The correct answer is C. curRibbon.MakeTabAvailable("SP.Ribbon.ContextualTab"). MNEMONIC RULE: "MakeTabAvailable" Ribbon.MakeTabAvailable Method (String)

Developing for User Experience

Question

You are creating an application. You develop a custom control that renders a contextual tab. The control contains the following code segment. (Line numbers are included for reference only.) 01Protected Overloads Overrides Sub OnPreRender(ByVal e As EventArgs) 02 Dim curRibbon As SPRibbon = SPRibbon.GetCurrent(Me.Page) 03 04 curRibbon.MakeContextualGroupInitiallyVisible ("SP.Ribbon.ContextualGroup", String.Empty) 05 MyBase.OnPreRender(e) 06 End Sub You need to ensure that when the custom control is rendered, the custom contextual tab appears in the Ribbon. Which code segment should you add at line 03?

Options

  • AcurRibbon.Enabled = true
  • BcurRibbon.MakeRTEContextualTabsAvailable("SP.Ribbon.ContextualTab ")
  • CcurRibbon.MakeTabAvailable("SP.Ribbon.ContextualTab")
  • DcurRibbon.Visible = true

How the community answered

(35 responses)
  • A
    6% (2)
  • B
    14% (5)
  • C
    74% (26)
  • D
    6% (2)

Explanation

MNEMONIC RULE: "MakeTabAvailable" Ribbon.MakeTabAvailable Method (String)

Topics

#Ribbon#contextual tab#SPRibbon#MakeTabAvailable

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice