I want to change the color of the border of a tile

Hello,

I have a tileviewcontrol with some items which only show a image. Around the control I have a black border.

When I move the mouse into a tile I want to change the bordercolor in red and when I click the tile I want to change the bordercolor into green.

I create the tiles on the fly during runtime:

                    var clockVorschau = new TileViewItem()

                    {

                        HeaderVisibility = Visibility.Collapsed,

                        Height = 200,

                        Width = 200,

                        Content = clockContent,

                        Background = Brushes.White,

                        BorderBrush = Brushes.Black,

                        BorderThickness = new Thickness(2, 2, 2, 2),

                        Foreground = Brushes.LightGray

                    };

After this, it looks like that:


Is it possible to change the border color in when I move mouse into a tile and click on a tile ?

Thanks and regards

Uwe


3 Replies 1 reply marked as answer

SN Sudharsan Narayanan Syncfusion Team November 3, 2021 06:26 AM UTC

Hi Uwe,

Thanks for contacting Syncfusion Support,

We have checked the reported issue that “
Change border brush color when mouseover and selected” from our end. We have prepared the sample to achieve the requirement. Please find the sample from the below location.



Marked as answer

UP Uwe Porsch replied to Sudharsan Narayanan November 4, 2021 09:12 AM UTC

Hi Sudharsan,

thanks a lot for you help, that was very usefull.

Regards

Uwe



SN Sudharsan Narayanan Syncfusion Team November 8, 2021 03:24 AM UTC

Hi Uwe,

 
We are glad to know that your issue has been fixed. Please let us know if you need any other assistance. We will be happy to assist you.

Regards,
Sudharsan
 


Loader.
Up arrow icon