随鼠标移动而变色的背景
第01个小程序:随鼠标移动而变色的背景(VaryTheBackground.cs)
程序运行时,当鼠标指针靠近窗口中心程度不同,客户区的背景颜色也不同。
usingSystem;
usingSystem.Windows;
usingSystem.Windows.Input;
usingSystem.Windows.Media;
namespaceChapter02
{
publicclassVaryTheBackground:Window
{
SolidColorBrushbrush=newSolidColorBr
用户评论