Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6608629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:37:48+00:00 2026-05-25T19:37:48+00:00

I got a control that looks like this , it has several text boxes

  • 0

I got a control that looks like this , it has several text boxes

[1 ][2 ][3 ][4 ]

Now in my app those controls are forming a somekind of a matrix like

[1 ][2 ][3 ][4 ]
[1 ][2 ][3 ][4 ]
[1 ][2 ][3 ][4 ]

Now I wanted to set 1 3 and 4 IsTabStop = false so user can tab through 2nd textboxes only.
After I have done that I found out that 1 3 4 now cannot be focused. And to my surprise in WPF this is not true, so its just another Silverlight unexpected limitation!

http://msdn.microsoft.com/ru-ru/library/system.windows.controls.control.istabstop(v=vs.95).aspx

How to proceed with my initial tabbing through [2 ] plan?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:37:49+00:00Added an answer on May 25, 2026 at 7:37 pm

    I believe you can extend the TextBox control to have it focusable. See this post.

    Attached Property

    public class Ex
    {
        public static bool GetIsTabStop(DependencyObject obj)
        {
            return (bool)obj.GetValue(IsTabStopProperty);
        }
    
        public static void SetIsTabStop(DependencyObject obj, bool value)
        {
            obj.SetValue(IsTabStopProperty, value);
        }
    
        // Using a DependencyProperty as the backing store for IsTabStop.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty IsTabStopProperty =
            DependencyProperty.RegisterAttached("IsTabStop", typeof(bool), typeof(Ex), new PropertyMetadata(true, Callback));
    
        private static void Callback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var control = d as Control;
            if (control != null)
            {
                control.IsTabStop = (bool)e.NewValue;
    
                control.MouseLeftButtonDown += (sender, args) =>
                {
                    if (!control.IsTabStop)
                    {
                        control.IsTabStop = true;
                        control.Focus();
                        control.IsTabStop = false;
                    } 
                };
            }
        }
    }
    

    XAML

        <TextBox HorizontalAlignment="Left" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Margin="215,49,0,0" RenderTransformOrigin="0,7.25"/>
        <TextBox HorizontalAlignment="Left" local:Ex.IsTabStop="False" TextWrapping="Wrap" Text="TextBox" Margin="215,96,0,0" VerticalAlignment="Top"/>
        <RadioButton Content="RadioButton" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="210,144,0,0"/>
        <RadioButton Content="RadioButton" local:Ex.IsTabStop="False" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="213,183,0,0"/>
    

    You can basically attach this to anything that’s inherited from Control.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got some JavaScript in an ASP.NET page that looks like this: var list
I've got a script control that has a control embedded within it that exposes
I've got a WebBrowser control on a WinForms app that is loading XML which
So I've got this control I'm trying to make. It's an in-place text editor
I've got a Javascript mess that looks something like: Note: Not working code, just
I have got an ActiveX Control that gets an image from a fingerprint device
I've got a user control that I'm loading into a Window dynamically - I
I've got a website project under version control that relies on files from an
I've create a WinForms control that inherits from System.Windows.Forms.UserControl...I've got some custom events on
I've got an asp.net ajax style AccordionPane control that I am trying to get/set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.