nerdexam
Microsoft

70-573 · Question #263

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.) 01…

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.) 01 protected override void OnPreRender(EventArgs e) 02 { 03 SPRibbon curRibbon = SPRibbon.GetCurrent(this.Page); 04 05 curRibbon.MakeContextualGroupInitiallyVisible("SP.Ribbon.ContextualGrou p", string.Empty); 06 base.OnPreRender(e); 07 } 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 04?

Options

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

How the community answered

(51 responses)
  • A
    8% (4)
  • B
    12% (6)
  • C
    78% (40)
  • D
    2% (1)

Explanation

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

Topics

#Ribbon customization#contextual tab#SPRibbon#MakeTabAvailable

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice