1. The buttons in Silverlight do not have the mouseleftbuttondown and mouseleftbuttonup events. Because Sl has already stored these two events in the buttonbase class
E. hanlder of is set to true. Therefore, these two events are not referenced. If you want to use the click event,
Use click
2. The contentpresentation in the button template can be used to load a container, and any controls can be loaded in the container. Use the followingCodeTo display the content of a button.
<Button style = "{staticresource buttonstyle}">
& Lt; grid Height = "50" width = "100" & gt;
<Rectangle fill = "# ffcbe3ff" stroke = "# ff000000" margin = "8, 8, 24, 8"/>
<Textblock Height = "16" margin = "34,0, 8, 1" verticalignment = "bottom" foreground = "# ffa40cdd" text = "textblock"
Textwrapping = "Wrap"/>
<Textbox background = "# ffecff6e" Height = "21" margin = "0,0, 44,0" verticalignment = "TOP" text = "textbox"
Textwrapping = "Wrap"/>
</GRID>
</Button>