小编Mil*_*wal的帖子

18
推荐指数
2
解决办法
2万
查看次数

依赖属性 - 成员无法识别或无法访问

我创建了一个UserControl并在其中定义了一个依赖属性Label.当我在控件中引用它时,我得到了错误The member "Label" is not recognised or is not accessible.我不明白的是,它在Windows手机上运行完美,但在将应用程序移植到Windows 8后,它会出现此错误.是否有不同的东西要做Windows 8用户控件?请帮忙.

user-controls dependency-properties microsoft-metro windows-8

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

如何在WP7中删除锁定屏幕上的音量控制?

当你停止在音乐播放器中播放的音乐时,它并没有真正阻止它.它只是暂停它,因为您在锁定屏幕后仍然可以看到音乐控件.我想删除使用后面的代码出现在锁定屏幕上的音量控制(倒带,播放,前进)按钮.这已经通过市场上的现有应用程序实现Stop the Music!.我已经浏览了这个页面,但我仍然无法理解他们是如何做到这一点的.

反正有没有实现这个?

c# audio-player windows-phone-7 windows-phone-7.1 windows-phone-8

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

在Windows 8应用程序中保存List <Object>的最佳方法是什么

我有一个List<class>数据.我希望保存它并在每次我的应用程序启动和退出时检索它.什么是IsolatedStorageWindows 8中的(WP7).如何保存这些设置?

windows-8

8
推荐指数
2
解决办法
4865
查看次数

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

保留Listview滚动页面导航

listview scroll position如果我导航到另一个页面并按下back按钮返回,我该如何维护?

它永远resets it to top.回到我曾经的雄心是一种真正的痛苦.请帮忙

listview vertical-scrolling microsoft-metro windows-8

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

在Windows 8中的TextBlock中打印换行符

我想TextBlock's Text在我的代码后面分配并在屏幕上显示它.它也可能包含new line character.但不知何故,TextBlock这不是打印那个角色.我在文本中使用了以下组合来打印新行字符

  • &#x0A;
  • &#x0D;&#x0A;
  • &#10;
  • &#13;&#10;
  • \n
  • \r\n

有没有人这样做过?你能帮助我吗?

windows-8

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

密码框与提示文本

如何在Windows Phone中显示带提示文本的密码框?

我试过了PasswordBoxToolkit's PhoneTextBox.将这两者结合起来有什么特别的事吗?

textbox hint passwordbox windows-phone-7 windows-phone-7.1

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

市场错误报告中的System.ComponentModel.AsyncOperation.VerifyNotCompleted错误

System.ComponentModel.AsyncOperation.VerifyNotCompletedstacktraceWindows手机市场的报告中有一个错误.我正在使用background worker后台线程工作.此错误windows phone 8比在Windows Phone 7中发生的更多.

请问有人可以解释这个错误吗?

backgroundworker windows-phone-7 windows-phone-7.1 windows-phone-8

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

如何在后台逐块上传文件?

我正在为 Windows Phone 8.1 制作一个通用应用程序。我想在后台将文件上传到服务器。Microsoft 提供了BackgroundUploader类,其中包含BeginUploadAsync 方法,该方法可以在后台通过单个请求上传整个文件。

我想将文件分块上传到服务器。但我无法找到分块上传文件的方法。还有其他选择吗?

c# windows file-upload windows-runtime windows-phone-8

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

WNS推送Windows Phone Silverlight 8.1中Voip应用的有效载荷

在windows phone 8中调用voip代理,服务器需要通过MPNS发送带有后续有效负载的类型4原始通知.

HttpWebRequest sendNotificationRequest = (HttpWebRequest)WebRequest.Create(subscriptionUri);

sendNotificationRequest.Method = "POST";

// We will create a HTTPWebRequest that posts the raw notification to the Microsoft Push Notification Service.
// HTTP POST is the only allowed method to send the notification.

// Create the raw message.

string rawMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + "<root></root>";
// Sets the notification payload to send.
byte[] notificationMessage = Encoding.Default.GetBytes(rawMessage);

// Sets the web request content length.
sendNotificationRequest.ContentLength = notificationMessage.Length;
sendNotificationRequest.ContentType = "text/xml";
sendNotificationRequest.Headers.Add("X-NotificationClass", "4");


using (Stream …
Run Code Online (Sandbox Code Playgroud)

silverlight voip mpns windows-phone-8.1 wns

5
推荐指数
0
解决办法
167
查看次数

从base64String加载bitmapImage

我怎样才能加载bitmapImagebase64Stringwindows 8

我试过这个,但我没有成功.它曾经在Windows手机上工作.有什么不同吗?

看起来我必须使用函数setsourceasync.当我使用它时,我需要将参数作为IRandomMemory传递,我无法做到.这该怎么做?

    public static BitmapImage Base64ToImage(string base64String)
    {
        var bitmapImage = new BitmapImage();
        try
        {
            if (!String.IsNullOrEmpty(base64String))
            {
                var imageBytes = Convert.FromBase64String(base64String);
                using (var ms = new MemoryStream(imageBytes, 0, imageBytes.Length))
                {
                    bitmapImage.SetSourcec(ms);
                    return bitmapImage;
                }
            }
        }
        catch (Exception e)
        {

        }

        return null;
    }
Run Code Online (Sandbox Code Playgroud)

c# bitmapimage microsoft-metro windows-8

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