路由事件的路由策略有:
冒泡
直接
隧道冒泡和隧道很容易理解,我想问的是直接是怎么用的,
比如:
    <Grid MouseDown="Grid_MouseDown"  Background="Gray">
        <Rectangle Height="59" HorizontalAlignment="Left" Margin="101,101,0,0" Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="111" Fill="Blue" />
        <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="192,198,0,0" Name="button1" VerticalAlignment="Top" Width="75" />
    </Grid>        private void Grid_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Title = DateTime.Now.ToString();
        }我希望MouseDown仅在点击Grid的时候触发,而点击到其子元素时不触发(前提是不能在子元素的相应事件中写Handle=true)
只能更改Grid自身的一些设置