Skip to main content

Microsoft Silverlight

Answered Question Displaying multiple .xaml pagesRSS Feed

(0)

nt86
nt86

Member

Member

19 points

9 Posts

Displaying multiple .xaml pages

I have 2 .xaml pages. The 1st one displays fine, it is only a Data Grid I pretty much have the same code on my 2nd .xaml page and its not displaying right its only displaying as half its actual size in the top corner of the page and i have the width and height set, (the project is not showing up any errors either). I only have 1 Test.aspx page do i need to create a 2nd to display the second .xaml page or how does this work.??

 Thanks 

mchlsync
mchlsync

Star

Star

14606 points

2,730 Posts

Silverlight MVP
Answered Question

Re: Displaying multiple .xaml pages

You need both of your user controls to Main Page.

For example: You have Page1.xaml and Page2.xaml. then you need to add both controls in MainPage.xaml

<StackPanel>

<prx:Page1 Width="100" Height="100" />
<prx:Page2 Width="100" Height="100" />

<StackPanel>

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Regards,
Michael Sync
Silverlight MVP

Blog : http://michaelsync.net


Min-Hong Tang - MSFT
Min-Hong...

Contributor

Contributor

3376 points

377 Posts

Answered Question

Re: Displaying multiple .xaml pages

Hi,

    According to your thread , i assume that you put both .xaml pages in the Test.aspx. 

    You don't need to create another aspx page to display multiple SL application. Em, can i see some of your code block. Maybe i can nail down the cause then.  Informations about your SL appliaction plugin(the object element) and your SL application's size define will be very helpful.

Best Regards

Min-Hong Tang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities