Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Silverlight 2中创建路由事件?_Silverlight_Events - Fatal编程技术网

如何在Silverlight 2中创建路由事件?

如何在Silverlight 2中创建路由事件?,silverlight,events,Silverlight,Events,有人知道如何在Silverlight 2中创建路由事件吗?在WPF中,代码如下所示。但是,Silverlight中没有EventManager public static readonly RoutedEvent ShowVideoEvent = EventManager.RegisterRoutedEvent("ShowVideo", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(NavBar));

有人知道如何在Silverlight 2中创建路由事件吗?在WPF中,代码如下所示。但是,Silverlight中没有EventManager

    public static readonly RoutedEvent ShowVideoEvent =
        EventManager.RegisterRoutedEvent("ShowVideo", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(NavBar));

    public event RoutedEventHandler ShowVideo
    {
        add { AddHandler(ShowVideoEvent, value); }
        remove { RemoveHandler(ShowVideoEvent, value); }
    }

至少在目前,你可以创造你自己的。然而,这篇文章是为Beta2写的,看这篇文章,似乎没有提到任何东西。但我想这可能不是一个突破性的变化,我们可以一直希望,呃;)


有很多,但我不确定此文档是否已针对RC0进行了更新。

至少目前,您可以创建自己的文档。然而,这篇文章是为Beta2写的,看这篇文章,似乎没有提到任何东西。但我想这可能不是一个突破性的变化,我们可以一直希望,呃;)

有很多问题,但我不确定该文档是否已针对RC0进行了更新