What kind of Brush does Silverlight support?

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’);
Mouse events that Silverlight currently supports
The mouse events that supports silverlight are - LostMouseCapture - occurs when an UI element lost mouse capture...
MouseLeftButtonDown and MouseLeftButtonUp in Silverlight
The difference is the action of the button. Once mouse button is pressed MouseLeftButtonDown event is invoked...
What is the function used for removing an event listener?
The method removeEventListener() is used for deleting an event listener...
Post your comment