Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Hyperlink layout question

Hyperlink layout question

Scheduled Pinned Locked Moved WPF
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CrafterIt
    wrote on last edited by
    #1

    Hi! I have added a hyperlink in silverlight. But when i click on the link it displays a blue rectangular border for the size of the hyperlink control. The link opens a popup window, so this doesn't look so good on the webpage.

    <HyperlinkButton x:Name="History"
    Content="History"
    Margin="0"
    FontFamily="Arial"
    FontSize="10.667"
    Click="HistoryHyperlinkButton_Click"
    Foreground="Black"
    FontWeight="Bold" Background="{x:Null}" Cursor="Hand"
    BorderThickness="0"
    />

    Is there a way to disable this or have i missed somethink?

    A 1 Reply Last reply
    0
    • C CrafterIt

      Hi! I have added a hyperlink in silverlight. But when i click on the link it displays a blue rectangular border for the size of the hyperlink control. The link opens a popup window, so this doesn't look so good on the webpage.

      <HyperlinkButton x:Name="History"
      Content="History"
      Margin="0"
      FontFamily="Arial"
      FontSize="10.667"
      Click="HistoryHyperlinkButton_Click"
      Foreground="Black"
      FontWeight="Bold" Background="{x:Null}" Cursor="Hand"
      BorderThickness="0"
      />

      Is there a way to disable this or have i missed somethink?

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      One way is to set the IsTabStop="False" on the button. The other way, more correct but tedious, is to style the hyperlink button to modify the focussed state of the state manager. For this you will need to either use Expression Blend or pick up the style from msdn and then modify and use it.

      The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick Visit the Hindi forum here.

      C 1 Reply Last reply
      0
      • A Abhinav S

        One way is to set the IsTabStop="False" on the button. The other way, more correct but tedious, is to style the hyperlink button to modify the focussed state of the state manager. For this you will need to either use Expression Blend or pick up the style from msdn and then modify and use it.

        The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick Visit the Hindi forum here.

        C Offline
        C Offline
        CrafterIt
        wrote on last edited by
        #3

        Thank you! IsTabStop got the result i wanted :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups