IsFocused don't works

5 posts, 0 answers
  1. Carsten Jendro
    Carsten Jendro avatar
    8 posts
    Member since:
    Jul 2009

    Posted 10 Sep 2011 Link to this post

    I Think there is a Bug in RadNumericUpDown

    I have an ErrorTemplate that shows an Info popup when the Control is focused, it dont works with the RadNumericUpDown.

    IsFocused is always false.
  2. Boyan
    Boyan avatar
    758 posts

    Posted 14 Sep 2011 Link to this post

    Hello Carsten Jendro,

    We investigated the behavior and it is a bug at our side. We have created a PITS item where you can follow its progress.

    Please, excuse us for the inconvenience. We have added points to your account for the report. Don't hesitate to contact us if you have other questions.

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Carsten Jendro
    Carsten Jendro avatar
    8 posts
    Member since:
    Jul 2009

    Posted 14 Sep 2011 Link to this post

    For Other users with the same probelm.

    i used  IsKeboardFocusWithin property as a workaround
  5. Hammad
    Hammad avatar
    3 posts
    Member since:
    Sep 2014

    Posted 16 Sep 2015 in reply to Carsten Jendro Link to this post

    IsKeboardFocusWithin also does not work 

    there is one more bug

    <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Value" Value="5"></Setter>
                    <Setter Property="BorderBrush" Value="Red"></Setter>


    This trigger changes the value to 5 but not the border brush.its been 4 years is it not being fixed yet???

  6. Kalin
    Kalin avatar
    1207 posts

    Posted 18 Sep 2015 Link to this post

    Hi Hammad,

    The IsKeyboardFocusWithin as well as the IsMouseOver properties work as expected. The reason for the observed behavior is that in the ControlTemplate of the control there is a MouseOver VisualState also changing the BorderBrush. Try setting the background instead:

    <Trigger Property="IsMouseOver" Value="True">
        <Setter Property="Value" Value="5"></Setter>
        <Setter Property="Background" Value="Red"></Setter>

    However if you need to change the BorderBrush using a Trigger you would need to modify the ControlTemplate in order to remove the the MouseOver VisualState.

    Hope this helps.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for WPF is Visual Studio 2017 Ready