日期:2014-05-17  浏览次数:21006 次

WPF,这个知识块的MSDN地址是哪里?

<Window x:Class="WPF熊俊.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="463" Width="477">
    <Grid Height="434" Name="grid1" Width="557">
        <Border  BorderBrush="SteelBlue" Name="border1" BorderThickness="1,2,1,2" CornerRadius="3" Margin="16,177,329,164" MouseLeftButtonDown="Border_MouseLeftButtonDown" />
    </Grid>
</Window>


一个Border,当没有设置Background的时候,单击里面区域,是没有任何反应的。当Background不为Null的时候,即便是透明的,单击里面就会引发MouseLeftButtonDown事件了。
记得好像是这样解释的:控件的Hit-testing需要其background不为null,Hit-testing用于检测鼠标是否点击到一个控件的区域内...........

我想请你给我一个MSDN的链接地址,讲的就是这方面的知识(Hit-testing).............

------解决方案--------------------
你要的是这个?
http://msdn.microsoft.com/zh-cn/library/vstudio/aa970268.aspx
------解决方案--------------------
那里面也分门别类呀,找你想要的就好了。
------解决方案--------------------
http://msdn.microsoft.com/zh-cn/library/ms752097.aspx#%E4%B8%AD%E5%9B%BD%EF%BC%88%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87%EF%BC%89