none
How do you set tabindex of a textblock with hyperlink

    Question

  • You can focus on a textblock with hyperlink when you use Tab to navigate but there is no tabindex property for it. I don't see any attached property for TabIndex either. How do you set it?

    Monday, February 02, 2009 8:57 AM

Answers

  •  Check out the KeyboardNavigation class.

    <StackPanel> 
        <TextBlock> 
          This is the first <Hyperlink NavigateUri='http://shazzam-tool.com' 
                                       KeyboardNavigation.IsTabStop='True' 
                                       KeyboardNavigation.TabIndex='0'>link</Hyperlink> 
        </TextBlock> 
        <TextBlock> 
          This is the second <Hyperlink NavigateUri='http://wpfwonderland.wordpress.com' 
                                        KeyboardNavigation.IsTabStop='True' 
                                        KeyboardNavigation.TabIndex='1'>link</Hyperlink> 
        </TextBlock> 
      </StackPanel> 

    Walt | http://wpfwonderland.wordpress.com
    • Marked as answer by manduz_griffus Friday, February 06, 2009 3:41 AM
    Tuesday, February 03, 2009 7:31 AM