TextBlock MouseEvent doesn't work properly when text alignment is applied.
Last post 03-25-2008 10:54 PM by jjy2. 0 replies.
Sort Posts:
03-25-2008 10:54 PM
TextBlock MouseEvent doesn't work properly when text alignment is applied.

TextBlock MouseEvent doesn't work properly when text alignment is applied.


When I have textblock with TextAlignment.Center
TextBlock's MouseEvent triggers as if text is aligned to left.

For example, string TextBlock with large width like below,

       "                centered               "
        XXXXXXXX00000000000000000000000000000000         
Where X is mouse detected area, 0 is not.

When I move mouse over "XXXXXXXX" area, MouseMove, Enter, Leave event fires  
but no events fires when move over "00000000000000000000000000000000" area.

 

 

  

 

jjy2

Loading...
Joined on 09-17-2007
Posts 146
Page view counter