小编rob*_*ing的帖子

在崩溃报告中使用.cab文件进行调试(Windows Phone 7.x)

我在仪表板中查看了我的Windows Phone应用程序的崩溃报告.有一个CAB文件的下载链接可以更好地调试.

但我不知道如何使用它来调试.我找到了这个链接:

http://blogs.msdn.com/b/windowsstore/archive/2012/06/27/improving-apps-with-quality-reports.aspx

但我找不到他们适合我的应用程序的符号.它是一个Windows Phone 7.x应用程序.我只找到Windows符号的下载链接.有没有人有任何想法?

问候神秘

c# windows-phone-7 windows-phone-8

5
推荐指数
1
解决办法
786
查看次数

WinRT反射(C++/CX)

如何在C++/CX中内省对象?我知道如何获取它的类名(使用IInspectable),但如果我只有一个方法的名称(字符串),我无法弄清楚如何获取其属性列表或如何调用方法.我在这里和谷歌搜索了一个答案,但我发现的是与WinRT的.NET层有关(System.Reflection命名空间似乎在C++/CX中不可用).

reflection introspection windows-runtime c++-cx

4
推荐指数
1
解决办法
2653
查看次数

在WP 8.1中访问Assets文件夹时出现异常

我正在尝试将应用程序从Windows Phone Silverlight 8.0升级到8.1.当我尝试访问8.1上的"Assets"文件夹时,我遇到了异常.我能够在一个示例项目中重现这一点,该项目在定位8.0时工作正常,但在升级到8.1时会产生异常.

以下是示例应用程序MainPage的XAML:

<phone:PhoneApplicationPage
    x:Class="PhoneApp1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0"/>
            <TextBlock Text="page name" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Button Content="Get Assets" HorizontalAlignment="Center" VerticalAlignment="Center" Click="Button_Click"/>
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>
Run Code Online (Sandbox Code Playgroud)

这是MainPage代码隐藏:

using System;
using System.Diagnostics;
using System.Windows;
using Microsoft.Phone.Controls;
using Windows.Storage;

namespace PhoneApp1
{
    public partial class MainPage …
Run Code Online (Sandbox Code Playgroud)

windows-runtime windows-phone-8 windows-phone-8.1

1
推荐指数
1
解决办法
1955
查看次数