Completed
Last Updated: 06 Jun 2016 13:21 by ADMIN
ADMIN
Vladi
Created on: 06 Jun 2014 10:48
Category: Window
Type: Bug Report
0
Setting FocusManager.FocusedElement thorws an Error: 4 in the output and the element is not focused
The thrown error is that the element that should be set as FocusedElement cannot be found.

Available in LIB version 2016.2.606, it will be also available in the 2016 R2 SP1 release.
1 comment
ADMIN
Vladi
Posted on: 06 Jun 2014 10:54
As a workaround rather then setting the FocusManager.FocusedElement in the xaml with a binding you can set it in the Loaded event of the RadWindow like this:

private void OnRadWindowLoaded(object sender, RoutedEventArgs e)
{
    FocusManager.SetFocusedElement(this, this.textBox);
}