TileViewItem does not goto state "MouseOver"

4 posts, 0 answers
  1. Matthias
    Matthias avatar
    26 posts
    Member since:
    Apr 2011

    Posted 26 May 2011 Link to this post

    Hi,

    I created a new ControlTemplate for RadTileViewItem which triggers some Buttons to be visible on MouseOver.

    It seems as if the RadTileViewItem does not goto the state MouseOver, because my buttons stay invisible when I move the mouse on my RadTileViewItem.

    To test the Controltemplate, i subclassed RadTileViewItem and added

    protected override void OnMouseMove(MouseEventArgs e)
           {
               base.OnMouseMove(e);
               VisualStateManager.GoToState(this, "MouseOver", false);
           }

    With this modification, my buttons are shown when mouse is over the RadTileViewItem.

    The default template does not define anything for VisualState MouseOver.

    Is this a known problem or do I miss something?

    Best Regards,
    Matthias
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 28 May 2011 Link to this post

    Hello Matthias,
    The RadTileView doesn't have a default behavior on mouse over and that's why nothing happens in the MouseOver visual state. In you case you'll have to create your own TileViewItem, override the OnMouseEnter and OnMouseLeave methods and put the visual state calls there. 
    For further references could you please examine the attached project and if you have more questions feel free to ask. 

    Best wishes,
    Zarko
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Matthias
    Matthias avatar
    26 posts
    Member since:
    Apr 2011

    Posted 30 May 2011 Link to this post

    Ah, okay.

    I just wondered why there is a state which is never even triggered.
    Maybe it would be better to remove it completely to prevent confusion ;)

    Best Regards,
    Matthias
  5. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 31 May 2011 Link to this post

    Hi Matthias,
    Thank you for the suggestion. We'll discuss it and decide what to do with those visual states.

    Kind regards,
    Zarko
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top