开发者

Global seek bar MediaElement wp7

How to create global seek bar for audio player in WP7?I want creat开发者_运维知识库e something like this

Global seek bar MediaElement wp7


Add the necessary controls to the application frame, rather than a/each page.

In app.xaml add something like this:

<Application.RootVisual>
    <phone:PhoneApplicationFrame x:Name="RootFrame"
           Navigated="CompleteInitializePhoneApplication"
           NavigationFailed="RootFrame_NavigationFailed">
        <phone:PhoneApplicationFrame.Template>
            <ControlTemplate>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="700"/>
                        <RowDefinition Height="100"/>
                    </Grid.RowDefinitions>
                    <Grid Grid.Row="0" x:Name="ClientArea">
                        <ContentPresenter />
                    </Grid>

                    <Grid Grid.Row="0">
                        // your controls here
                    </Grid>
                </Grid>
            </ControlTemplate>
        </phone:PhoneApplicationFrame.Template>
    </phone:PhoneApplicationFrame>
</Application.RootVisual>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜