views:

264

answers:

0

I am filling my ElementMenu with XML and all goes fine, i only got one question. How can i put a event on the last item? It doesnt seem to react on any of it. I got this so far:

        <s:ElementMenu.RenderTransform>
            <TranslateTransform X="0" Y="-27.5"/>
        </s:ElementMenu.RenderTransform>

        <s:ElementMenu.ItemTemplate>
            <HierarchicalDataTemplate ItemsSource="{Binding XPath=map}">

                <s:SurfaceContentControl Content="{Binding XPath=@name}" />

                <HierarchicalDataTemplate.ItemTemplate>
                    <DataTemplate>
                        <s:SurfaceContentControl Content="{Binding XPath=@name}"/>
                    </DataTemplate>
                </HierarchicalDataTemplate.ItemTemplate>

            </HierarchicalDataTemplate>
        </s:ElementMenu.ItemTemplate>
    </s:ElementMenu>

And i am trying to put a event (like a contactover / contactdown) on this item:

                <HierarchicalDataTemplate.ItemTemplate>
                    <DataTemplate>
                        <s:SurfaceContentControl Content="{Binding XPath=@name}"/>
                    </DataTemplate>
                </HierarchicalDataTemplate.ItemTemplate>

But doesnt react if i put it directly on the SurfaceContentControl. Can someone help me figuring this out? Thank you