Running Problem in wpf

Posted by Lakn2 under WPF on 7/7/2011 | Points: 10 | Views : 1257 | Status : [Member] | Replies : 4
hi i am new to wpf ,i have one wpf project and in that i have two pages .how can i run page2 ,and in it takes lot of time to run what is the reason.

Thanks&Regards
LakshmiNarayana Nalluri.



Responses

Posted by: Jpchoudhari on: 7/7/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,

You just need to add new "Window" class to your project.

Window2 objWindow = new Window2();

objWindow.Show();


and these two lines are enough to display new window.

Thanks and Regards,
Jaydeep Choudhari

Kind Regards,
Jay

Lakn2, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Peermohamedmydeen on: 7/8/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

Go to App.xaml file.

<Application x:Class="XYZ.App"

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:local="clr-namespace:ARC"
xmlns:xyzcontrols="clr-namespace:XYZ.Controls" xmlns:XYZcommon="clr-namespace:XYZ.Common"
StartupUri="Page2.xaml">


Change the StartUpUri to Page2.




Lakn2, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lakn2 on: 7/8/2011 [Member] Starter | Points: 25

Up
0
Down
thank you and one more doubt is why wpf app taking too much time to run what is the problem

Thanks&Regards
LakshmiNarayana Nalluri.

Lakn2, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Blessyjees on: 9/20/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

normally it does not take more time to load. Have you added any big process in the startup page. I feel that winxp will take more time tham win7 to load first page.

Blessy

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Lakn2, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response