WP7芒果:重新创建PhoneApplicationFrame创建的“未指定错误";例外 [英] WP7 Mango: Retemplating PhoneApplicationFrame created "Unspecified Error" exception

查看:92
本文介绍了WP7芒果:重新创建PhoneApplicationFrame创建的“未指定错误";例外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下内容可用于WP 7.0:

The following used to work in WP 7.0:

我正在尝试使用以下Xaml重新模板化芒果Beta 2刷新(7712)项目中的根PhoneApplicationFrame:

I'm attempting to re-template the root PhoneApplicationFrame in my Mango beta 2 refresh (7712) project with the following Xaml:

<Style TargetType="phone:PhoneApplicationFrame" x:Key="FrameStyle">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate>
                <Border x:Name="ClientArea" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" >
                    <Grid>
                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" />
                        <toolkit:PerformanceProgressBar IsIndeterminate="True" VerticalAlignment="Top" Margin="0,8,0,0" Visibility="{Binding Path=GlobalProgressVisibility, Source={StaticResource RootFrameViewModel}}" />
                    </Grid>
                </Border>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>

当应用程序启动时,我得到一个App.UnhandledException文本未指定的错误",没有堆栈跟踪.有人看过吗?

When the application launches I get an App.UnhandledException with the text "Unspecified error" and no stack trace. Has anyone seen this?

推荐答案

Blend有助于指出不应在Mango中设置的某些属性.删除Content和ContentTemplate属性可以解决此问题.

Blend was helpful in pointing out some properties that shouldn't be set in Mango. Removing the Content and ContentTemplate properties fixed the issue.

这篇关于WP7芒果:重新创建PhoneApplicationFrame创建的“未指定错误";例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆