模板10 HamburgerButtonInfo Got_Focus未实现

时间:2016-06-30 05:41:54

标签: c# uwp template10

我想在模板10 HamburgerButtonInfo中使用Got_Focus。

    <Grid>
    <MediaElement x:Name="mediaNav" AutoPlay="True" />

    <Controls:HamburgerMenu x:Name="MyHamburgerMenu" >

        <Controls:HamburgerMenu.PrimaryButtons>
            <!--  mainpage button  -->
            <Controls:HamburgerButtonInfo ClearHistory="True" PageType="views:MainPage"  AutomationProperties.Name="Jerry" >                                       
                <StackPanel Orientation="Horizontal" >
                    <SymbolIcon Width="48" Height="48" Symbol="Home" />
                    <TextBlock Margin="12,0,0,0" VerticalAlignment="Center" Text="Home"  />
                    <!--<Button Content="Home" HorizontalAlignment="Stretch" Width="120"
                        VerticalAlignment="Center" Margin="12,0,0,0" Height="48"  />-->
                </StackPanel>
            </Controls:HamburgerButtonInfo>
        </Controls:HamburgerMenu.PrimaryButtons>
    </Controls:HamburgerMenu>
    </Grid>

如果我理解正确,Got_Focus确实应该在HamburgerButtonInfo级别,但它不可用。
谁能告诉我这是如何实现的?

提前致谢。

0 个答案:

没有答案