访问PivotItem中的元素 - WP8

时间:2014-03-04 20:33:50

标签: c# xaml windows-phone-8

这是我的MainPage.xaml:

<Grid x:Name="LayoutRoot" Background="Transparent">

    <!--Pivot Control-->
    <phone:Pivot Title="{Binding Path=LocalizedResources.ApplicationTitle, Source={StaticResource LocalizedStrings}}">

        <!--Pivot record-->
        <phone:PivotItem Header="record">
            <StackPanel>
                 <Button Click="Record" Name="RecordButton" Width="260" Height="260">
                      <Image Name="SaveImage" Source="Assets/Pictures/save.png" Width="140" />
                 </Button>
            </StackPanel>
        </phone:PivotItem>
    </phone:Pivot>
</Grid>

我无法从MainPage.xaml.cs访问 RecordButton SaveImage ...怎么做?

0 个答案:

没有答案