This is a migrated thread and some comments may be shown as answers.

Can I prevent the splitter from getting keyboard focus?

1 Answer 110 Views
Docking
This is a migrated thread and some comments may be shown as answers.
John Schroedl
Top achievements
Rank 2
John Schroedl asked on 08 Oct 2010, 03:37 PM

After the user clicks and resizes a rad splitter in a docking layout, the splitter is left with keyboard focus.  This is not the case with standard WPF grid splitters and I would like to have a similar behavior in a docking layout. To test: Click and resize a splitter then press the up/dn/left/right arrow keys -- I would like keyboard focus left where it used to be not on the splitter.

Usually in WPF, this means setting Focusable = false. I am setting that on the RadSplitContainers and on RadDocking but it does not help.

Does anyone have a technique for acheiving this?

John

1 Answer, 1 is accepted

Sort by
0
John Schroedl
Top achievements
Rank 2
answered on 08 Oct 2010, 04:29 PM

After some experimentation, this seems to work: 

    <Style TargetType="radDock:RadGridResizer">
        <Setter Property="Focusable" Value="False" />
    </Style>

John
Tags
Docking
Asked by
John Schroedl
Top achievements
Rank 2
Answers by
John Schroedl
Top achievements
Rank 2
Share this question
or