当主要应用程序中的页面被share charm启动的页面引用时,应用程序崩溃

编程入门 行业动态 更新时间:2024-10-25 21:19:24
本文介绍了当主要应用程序中的页面被share charm启动的页面引用时,应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个应用程序:

  • 当应用程序正常启动时显示的默认页面,并且有一个特定的按钮
  • 共享页面,当您的应用程序是共享目标时启动(例如,您的应用程序从其他应用程序接收图像)
  • 主页面的静态实例引用存储在名为MainPageInstance
  • 如果我执行以下操作,应用程序崩溃:

  • 通常从磁贴启动应用程序,构建主页并变量  ; MainPageInstance设置为主页面实例
  • 切换到MSDN示例共享源,与应用程序共享图像,共享页面启动
  • 在共享页面中,我需要禁用主页面上的按钮,我尝试通过MainPageInstance.button.isEnable = false执行此操作
  • 应用程序崩溃。
  • 这是预期的吗?有人帮忙吗?

    解决方案

    我们有一个已知错误,共享目标在调试时崩溃。这是你的情景吗?

    I have an app with:

    • Default page shown when app launches normally and has a particularButton
    • Share page, launched when your app is the Share target (ex. your app receives images from another app)
    • Static instance reference of Main page is stored in App class in a variable called MainPageInstance

    If I do the following, the app crashes:

  • Launch app normally from tile, Main page is constructed and variableMainPageInstance gets set to Main page instance
  • Switch to MSDN sample Share Source, share an image with the app, the Share page gets launched
  • In the Share page I need to disable the Button on the Main page and I try to do this through MainPageInstance.button.isEnable = false
  • App crashes.
  • Is this expected? Anyone help?

    解决方案

    We have a known bug with Share targets crashing while being debugged. Is this your scenario?

更多推荐

当主要应用程序中的页面被share charm启动的页面引用时,应用程序崩溃

本文发布于:2023-06-10 22:55:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/620852.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   页面   charm   share

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!