Focus problem with material theme

3 posts, 0 answers
  1. Luiz
    Luiz avatar
    7 posts
    Member since:
    Mar 2015

    Posted 04 Apr 2018 Link to this post

    Setting focus programatically or on xaml declaration doesnt fit its purpose, when using the material theme.

    The textbox gets the carret, but its not blinking, keypresses doesnt change the text, and the "selected color bar" in the bottom does not fill up.




    <telerik:RadPasswordBox x:Name="txt" Background="White" WatermarkContent="Digite a Senha" HorizontalContentAlignment="Center"  Margin="20 0 20 0" WatermarkBehavior="HideOnTextEntered">
                                <KeyBinding Command="{Binding ValidarSenhaCommand}" CommandParameter="{Binding ElementName=txt}" Key="Enter" />





     private void UserControl_Loaded(object sender, RoutedEventArgs e)


  2. Luiz
    Luiz avatar
    7 posts
    Member since:
    Mar 2015

    Posted 04 Apr 2018 in reply to Luiz Link to this post

    the problem occurs with any rad-textboxes.


    btw, i'm using Mvvm and Prism.

  3. Sia
    Sia avatar
    753 posts

    Posted 09 Apr 2018 Link to this post


    Currently we are not aware of such behavior. What comes to my mind is that something in the specific setup leads to the wrong behavior, so any additional information would be appreciated.

    In our Material theme, the focus visual when focused is represented by a 3px line under the input.

    Do you have the FocusManager.IsFocusScope set somewhere in your application? And how do you manipulate the focus by code? Is it possible something to steal the focus from the PasswordBox?

    Looking forward your reply.

    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top