in Education by
I want a button that is an ellipse with a centered 'x' that will change it's colours on mouse over (both the colour of the 'x' and that of the ellipse). Similar to this The following gets the standard appearance I want The trouble is using the IsMouseOver property. It does work but only for each control. i.e. when I'm over the ellipse the background turns red BUT when I then go over the textblock the ellipse is no longer mouse over and so it turns back to the standard fill colour. Do I need to change my approach so that the content of the ellipse is the textblock? Many thanks JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
The issue is that the TextBlock actually covers more real estate than the 'x' because fonts have intrinsic padding around the pixels that form the letter. So the mouse could actually be over the TextBlock (and not just the pixels of the 'x' character) and this would prevent your other trigger from firing. This would account for the either/or effect you are experiencing. Among other approaches, one possibility is to wrap both elements into a control template...

Related questions

0 votes
    I want a button that is an ellipse with a centered 'x' that will change it's colours on mouse ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    ______tool is used to draw a circle. (I). filter. (ii). ellipse. (iii). rectangle. gūys jaldi answer do exam chl rha hai! please! Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
    A graphical or text depiction of the relationship between different groups of content on a website is ... Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    A graphical or text depiction of the relationship between different groups of content on a website is a: ... , Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    Which of these is a standard for communicating multimedia content over email? (a) http (b) https (c ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    The repro code is attached. It (basically) contains two div elements: red (fixed) and black (with ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    A box contains two pair of socks of two colours (black and white). I have picked out a white sock. I pick out ... I will make a pair? Select the correct answer from above options...
asked Nov 25, 2021 in Education by JackTerrance
0 votes
    4. It indicates the key to the different colours used to shade the columns in a chart. 5. Name at the top ... of the chart. 6 Comhinn Select the correct answer from above options...
asked Dec 30, 2021 in Education by JackTerrance
0 votes
    4. is a key that is used to identify the colours, patterns, or symbols assigned to data series. * OData Series O ... Y - Axis O Legend Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    (d) To display the colours of rainbow as per the user’s choice. Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    Compare and contrast the following technologies (i) SRAM and DRAM (ii) USB and Serial Port (iii)Joystick and ... and LED display Select the correct answer from above options...
asked Dec 29, 2021 in Education by JackTerrance
...