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

how can enable chnage of tile when user mouse over tiles

1 Answer 100 Views
Panorama
This is a migrated thread and some comments may be shown as answers.
peter
Top achievements
Rank 1
peter asked on 22 Aug 2016, 09:36 AM

hi

how can change color or animate or enable chnage when user mouse over tiles?

in regular nothing happened when user mouse over tiles. is there any solution?


thanks

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 23 Aug 2016, 08:55 AM
Hello Peter,

You can use the MouseLeave and MouseEnter events to change the BackColor:
public RadForm1()
{
    InitializeComponent();
    foreach (RadTileElement tile in this.radPanorama1.Items)
    {
        tile.MouseEnter += radTileElement1_MouseEnter;
        tile.MouseLeave += radTileElement1_MouseLeave;
        tile.BackColor = defaultColor;
    }
 
 
}
Color defaultColor = Color.Blue;
private void radTileElement1_MouseLeave(object sender, EventArgs e)
{
    RadTileElement tile = sender as RadTileElement;
    tile.BackColor = defaultColor;
}
 
private void radTileElement1_MouseEnter(object sender, EventArgs e)
{
    RadTileElement tile = sender as RadTileElement;         
    tile.BackColor = Color.Red;
}

I hope this will be useful. 

Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
Panorama
Asked by
peter
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or