Skip to main content

Microsoft Silverlight

Unanswered Question TextBlock MouseEvent doesn't work properly when text alignment is applied.RSS Feed

(0)

jjy2
jjy2

Member

Member

354 points

155 Posts

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.

 

 

  

 

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities