ButtonSpecFromView() публичный Метод

Gets the ButtonSpec associated with the provided view element.
public ButtonSpecFromView ( ViewBase element ) : ButtonSpec
element ViewBase Element to search against.
Результат ComponentFactory.Krypton.Toolkit.ButtonSpec
        /// <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);
        }
Пример #2
0
        /// <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)
 {
     // Delegate lookup to the viewlet that has the button spec manager
     return(_headerGroup.ButtonSpecFromView(element));
 }