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

TileViewItem does not goto state "MouseOver"

3 Answers 74 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Matthias
Top achievements
Rank 1
Matthias asked on 26 May 2011, 02:37 PM
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

3 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 28 May 2011, 02:03 PM
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
0
Matthias
Top achievements
Rank 1
answered on 30 May 2011, 06:49 AM
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
0
Zarko
Telerik team
answered on 31 May 2011, 08:06 AM
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
Tags
TileView
Asked by
Matthias
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Matthias
Top achievements
Rank 1
Share this question
or