在wp7中线程休眠后导航到另一个页面(navigate to another page after Thread sleep in wp7)

我正在制作一个启动画面页面。 这将在启动应用程序时显示。 我将线程设置为睡眠状态。 但我无法将其导航到另一个应用程序的主页面。 我在加载时设置了启动画面页面。 它还显示加载应用程序时。 但问题是我无法导航它。

这是我的代码。

public partial class WindowsPhoneControl1 : UserControl
{
    public WindowsPhoneControl1()
    {
        InitializeComponent();
        Thread.Sleep(4000);
        {
            NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));        
        }
    }
    }

I am making an splash screen page. That will show on start up of application. I set the thread sleep in it. But i am unable to navigate it to another main page of application. I set the splashscreen page at loading time. It is also showing when app is loaded. But the problem is that i am not able to navigate it.

here is my code.

public partial class WindowsPhoneControl1 : UserControl
{
    public WindowsPhoneControl1()
    {
        InitializeComponent();
        Thread.Sleep(4000);
        {
            NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));        
        }
    }
    }

原文:https://stackoverflow.com/questions/16539361
2022-11-09 12:11

满意答案

尝试: struct _Nodo *solicita


Try: struct _Nodo *solicita.

相关问答

更多

错误:在XCode核心数据中的...之前的预期说明符限定符列表(Error: Expected specifier-qualifier-list before … in XCode Core Data)

你是对的,但是...... #import <CoreData/CoreData.h> You're right, but it's... #import <CoreData/CoreData.h>

标准前的预期说明符 - 限定词列表(expected specifier-qualifier-list before std)

std::string没有声明。 如果您在顶部包含#include <string> ,代码将被编译。 std::string is not declared. If you #include <string> at the top, the code compiles.

这个错误是什么意思:“error:expected specifier-qualifier-list before'type_name'”?(What does this error mean: “error: expected specifier-qualifier-list before 'type_name'”?)

编译器不知道spe_context_ptr_t是一个类型。 当编译此代码时,检查相应的typedef是否在范围内。 您可能忘记包含相应的头文件。 The compiler doesn't know that spe_context_ptr_t is a type. Check that the appropriate typedef is in scope when this code is compiled. You may have forgotten to include the appro...

“错误:XXX之前预期的说明符 - 限定符列表”?(“error: expected specifier-qualifier-list before XXX”?)

你有没有在你的Makefile中定义LINUX或WINDOWS定义? 尝试 gcc -dM -E - < /dev/null 这会打印所有预定义的宏。 这里是Windows宏 。 have you defined LINUX or WINDOWS define in your Makefile? try gcc -dM -E - < /dev/null this prints all the predefined macros. and here the windows macros.

什么是说明符限定符列表?(What is a specifier-qualifier-list?)

它是一个指定符和限定符的列表:-)指定符是像void , char , struct Foo等等,并且限定符是像const和volatile这样的关键字。 有关定义,请参阅此C语法 。 在你的情况下, undefined_type还没有定义,所以解析器将它看作是一个标识符,而不是像预期的那样指定了一个限定符列表。 如果你要typedef ... undefined_type; 在它出现之前,那么undefined_type将成为一个说明符。 如果您认为使用上下文无关语法解析C,则编译器处理type...

“CGPoint”之前的预期说明符 - 限定符列表(Expected specifier-qualifier-list before 'CGPoint')

您需要在头文件(问题中的顶级文件)中导入<UIKit/UIKit.h>而不是<Foundation/Foundation.h> 。 You need to import <UIKit/UIKit.h> instead of <Foundation/Foundation.h> in your header file (the top file in your question).

在'if'[关闭]之前的预期说明符限定符列表(expected specifier-qualifier-list before 'if' [closed])

编译代码时,#之前的#只处理一次; 它们不会在运行时处理。 例如,这使得以下代码变坏: if (max8986_power->isFullcharged == TRUE) { #define FULLY_CHARGED 1 } else { #define FULLY_CHARGED 0 } 因为你实际上#define FULLY_CHARGED x两次(预处理器忽略实际的C代码;不使用if检查)。 稍后当你if (FULLY_CHARGED = 0)你不仅试图检查一个无效定义的...

错误:'TR'之前的预期说明符限定符列表(Error: expected specifier-qualifier-list before ‘TR’)

我对你的typedef struct tree {...} TREE_REC, *TR有点困惑。 我宁愿写: typedef struct tree {...} TREE_REC; //Alias on struct tree typedef TREE_REC * TR; //Definition of the pointer to a struct tree 在你的typedef中,令我不安。 你可以测试我的解决方案,或者只是澄清你的typedef的语法吗? I'm a bit confus...

error:创建struct数组之前的expected specifier-qualifier-list(error: expected specifier-qualifier-list before when creating a struct array)

发生这种情况是因为除非在数组的声明中包含关键字struct ,否则编译器无法解析first的类型,如下所示: struct first f_array[20]; 或者使用typedef : typedef struct { char a[5]; int b; } first; struct second { first f_array[20]; }; struct second obj = {{0}}; 使用typedef意味着您不再需要在整个地方编写struct并...

相关文章

更多

WP7 Mango可用性之我见

之前使用了一段时间Android手机,日常用到的功能主要有: Google Contacts同步 ...

《Windows Phone 7.5专题讲座之WP7入门系列》共10课时/更新完毕[压缩包]

中文名: Windows Phone 7.5专题讲座之WP7入门系列 资源格式: 压缩包 ...

线程报错 thread

/** * 只能这么写 * 不然 腾讯微博会报Can't create handler inside ...

一步一步掌握java的线程机制(二)----Thread的生命周期

之前讲到Thread的创建,那是Thread生命周期的第一步,其后就是通过start()方法来启动Th ...

引入thread后socket接受不了报文了

不使用线程thread可以正常接受报文,加了后就在recvfrom那里不动了,是怎么回事? usin ...

关于Thread类中的start()方法和run()方法

引用 public void start() Causes this thread to ...

wordpress wp_mail

$info .= &quot;微信: &lt;a href='http:// wx.jpg'&gt;h ...

page-taglib分页问题

想做个分页,用page-taglib怎么没反应,大家帮忙看下 online waiting..... ...

微信 Windows Phone版原型设计 - [WP开发]

用Metro的理念(自己暂时所理解到的程度)简单的设计了一下腾讯微信的原型设计图。然后,今天去面试实习 ...

最新问答

更多

获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)

我用Google搜索了一个解决方案。 “EnumDisplayModeProvider”是我自己设置网站的各种模式的枚举。 public EnumDisplayModeProvider GetDisplayModeId() { foreach (var mode in DisplayModeProvider.Instance.Modes) if (mode.CanHandleContext(HttpContext)) {

如何通过引用返回对象?(How is returning an object by reference possible?)

这相对简单:在类的构造函数中,您可以分配内存,例如使用new 。 如果你制作一个对象的副本,你不是每次都分配新的内存,而是只复制指向原始内存块的指针,同时递增一个也存储在内存中的引用计数器,使得每个副本都是对象可以访问它。 如果引用计数降至零,则销毁对象将减少引用计数并仅释放分配的内存。 您只需要一个自定义复制构造函数和赋值运算符。 这基本上是共享指针的工作方式。 This is relatively easy: In the class' constructor, you allocate m

矩阵如何存储在内存中?(How are matrices stored in memory?)

正如它在“熵编码”中所说的那样,使用Z字形图案,与RLE一起使用,在许多情况下,RLE已经减小了尺寸。 但是,据我所知,DCT本身并没有给出稀疏矩阵。 但它通常会增强矩阵的熵。 这是compressen变得有损的点:输入矩阵用DCT传输,然后量化量化然后使用霍夫曼编码。 As it says in "Entropy coding" a zig-zag pattern is used, together with RLE which will already reduce size for man

每个请求的Java新会话?(Java New Session For Each Request?)

你是如何进行重定向的? 您是否事先调用了HttpServletResponse.encodeRedirectURL()? 在这里阅读javadoc 您可以使用它像response.sendRedirect(response.encodeRedirectURL(path)); The issue was with the path in the JSESSIONID cookie. I still can't figure out why it was being set to the tomca

css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)

我认为word-break ,如果你想在一个单词中打破行,你可以指定它,这样做可以解决问题: .column { word-break:break-all; } jsFiddle演示。 您可以在此处阅读有关word-break属性的更多信息。 I think word-break, with which you can specify if you want to break line within a word, will do the trick: .column { word-break

无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)

我认为您忘记在分类时间内缩放输入图像,如train_test.prototxt文件的第11行所示。 您可能应该在C ++代码中的某个位置乘以该因子,或者使用Caffe图层来缩放输入(请查看ELTWISE或POWER图层)。 编辑: 在评论中进行了一次对话之后,结果发现在classification.cpp文件中错误地删除了图像均值,而在原始训练/测试管道中没有减去图像均值。 I think you have forgotten to scale the input image during cl

xcode语法颜色编码解释?(xcode syntax color coding explained?)

转到: Xcode => Preferences => Fonts & Colors 您将看到每个语法高亮颜色旁边都有一个简短的解释。 Go to: Xcode => Preferences => Fonts & Colors You'll see that each syntax highlighting colour has a brief explanation next to it.

在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)

你考虑过第三方拼写检查吗? 您可以将在C#中开发的自定义WinForms控件插入访问数据库吗? VB6控件怎么样? 如果你能找到一个使用第三方库进行拼写检查的控件,那可能会有效。 Have you considered a third party spell checker? Can you insert a custom WinForms controls developed in C# into an access database? What about a VB6 control? If

从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)

我有同样的问题,因为我在远程服务器上有两个图像,我需要在每天的预定义时间复制到我的本地服务器,这是我能够提出的代码... try { if(@copy('url/to/source/image.ext', 'local/absolute/path/on/server/' . date("d-m-Y") . ".gif")) { } else { $errors = error_get_last(); throw new Exception($err

从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))

我不确定我完全明白你在说什么。 你能编辑你的帖子并包含你正在做的Subversion命令/操作的特定顺序吗? 最好使用命令行svn客户端,以便容易为其他人重现问题。 如果您只是想获取文件的旧副本(即使该文件不再存在),您可以使用如下命令: svn copy ${repo}/trunk/moduleA/file1@${rev} ${repo}/trunk/moduleB/file1 其中${repo}是您的存储库的URL, ${rev}是您想要的文件的版本。 这将恢复该文件的旧版本,包括最高版本