What kind of Brush does Silverlight support?
Silverlight brush objects supports for painting with solid colors, linear gradients, radical gradients and images.
-
SolidColorBrush- used to paint a closed object such as rectangle
-
LinearGradientBrush - used to paint a linear gradient like glass, water and other smooth surfaces.
-
RadialGradientBrush – used to paint a radial gradient which is a blend together along an axis.
Explain the arguments for the addEventListener() method.
The first argument is an action event like mouseDown, mouseUp etc. The second argument is a call to a function.
The following lines illustrates the use of addEventListener() method.
function myfunction(x) { alert(x) }
Obj.addEventListener(“mouseDown”, myFunction(‘hello’);