回复:[Blend] 做自定义按钮时遇到问题
没怎么用blend做过开发 在WPF/E的SDK中是这么写的
<!-- Canvas MouseLeave event fires first, then TextBlock MouseLeave event -->
<Canvas
xmlns="http://schemas.microsoft.com/client/2007"
MouseLeave="javascript:rootCanvasMouseLeave">
<TextBlock
MouseLeave="javascript:textBlockMouseLeave"
Text="Test order of MouseLeave events" />
</Canvas>
The following JavaScript example shows to implement a MouseLeave event handler function:
JavaScript
function onMouseLeave(sender)
{
// Remove the visibility of the caption TextBlock.
sender.findName("captionTextBlock").opacity = 0;
}
你可以参考一下 我们一般都是用Canvas的