|
|
Questions and answers for Graphics and Multimedia Visual Layer.
|
30. Graphics and Multimedia Visual Layer
|
| 30.1 How
HitTest methods in VisualTreeHelper is useful ?
|
| 30.2 How
do I use DrawingVisual object ?
|
30.1 How HitTest methods in VisualTreeHelper is useful ?
|
|
HitTest methods are used to determine whether a point or geometry value is
within the content of a rendered object like a control or graphic element.
Using the 'HitTest' methods you can determine whether the mouse was clicked
within a control and also by overriding the implementation, custom actions can
be performed.
|
30.2 How do I use DrawingVisual object ?
|
|
The scenario is such that the animations in the page will continue to play until
it is garbage collected, even when the page is navigated away to another page
holding the memory and system resources for animation. There will be severe
drop in performance when more animations are running in a page. To overcome
this issue, "Unloaded" event of the page can be used to remove the animations
from the page such that the animations don't consume memory and system
resources.
|
|