Ticket T303134
Visible to All Users

HyperlinkEdit in RibbonForm

created 9 years ago

Hi,

In a RibbonForm, how can I put a HyperLinkEdit control? What I look for is an underline text that provides a click event.
I´ve attached an image to clarify where I want to locate this control.

Thanks in advance.

Eduardo.

Answers approved by DevExpress Support

created 9 years ago

Hello Eduardo,
To complete this task, add a link to the corresponding BarEditItem at the Ribbon PageHeader Items page of the Ribbon designer. Attached is a small video and sample that demonstrates this approach.
Please review it and let me know if this is what you need.

    Show previous comments (1)
    DevExpress Support Team 9 years ago

      Hello,
      In this case, I suggest you use another approach. Use BarStaticItem instead of BarEditItem with HyperLinkEdit. To change the cursor kind, handle the BarManager.HighlightedLinkChanged event and use the RibbonControl.Cursor property. To underline text, the ItemAppearance.Hovered property would be helpful, however, there is an issue at the moment: BarStaticItem - ItemAppearance.Hovered is not applied. So, as a workaround, I suggest you modify the item appearance in the HighlightedLinkChanged event handler as well. I've attached a simple project illustrating this approach. Please let me know if it is helpful.

      D D
      David del Barrio 9 years ago

        Thanks!!! It works perfectly!!!
        Then we will wait till the resolution of " BarStaticItem - ItemAppearance.Hovered is not applied" ticket. Maybe the Cursor change on Hover is useful to take into account for that ticket.
        Thanks again!!!

        DevExpress Support Team 9 years ago

          You are welcome! Please feel free to contact us in case of further difficulties.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.