/// <summary> /// Gets the ButtonSpec associated with the provided view element. /// </summary> /// <param name="element">Element to search against.</param> /// <returns>Reference to ButtonSpec; otherwise null.</returns> public override ButtonSpec ButtonSpecFromView(ViewBase element) { // Check base class for page specific button specs ButtonSpec bs = base.ButtonSpecFromView(element) ?? _headerGroup.ButtonSpecFromView(element); // Delegate lookup to the viewlet that has the button spec manager return(bs); }
/// <summary> /// Gets the ButtonSpec associated with the provided view element. /// </summary> /// <param name="element">Element to search against.</param> /// <returns>Reference to ButtonSpec; otherwise null.</returns> public override ButtonSpec ButtonSpecFromView(ViewBase element) { // Always check base class first ButtonSpec bs = base.ButtonSpecFromView(element) ?? _headerGroup.ButtonSpecFromView(element); // Call onto the contained header group implementation return(bs); }
/// <summary> /// Gets the ButtonSpec associated with the provided view element. /// </summary> /// <param name="element">Element to search against.</param> /// <returns>Reference to ButtonSpec; otherwise null.</returns> public override ButtonSpec ButtonSpecFromView(ViewBase element) => // Delegate lookup to the viewlet that has the button spec manager _headerGroup.ButtonSpecFromView(element);