Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Problems Using Frames

 
 
Old 05-21-2006   #1 (permalink)
Fidget Brain


 
 

Problems Using Frames

I am having a problem. please allow me to explain.

my application is essentially an empty shell which contains 2 frames. A menu
gets loaded into the first frame, and the other frame displays different
content, depending upon which menu item a user clicks. The layout is shown
below. I like this architecture because it gives me good code separation. It
means I can keep my menu logic in one file, and I can separate my content
logic into different files:

<Window> Main.xaml
| |
Frame 1 Frame 2
| |
<Page> Menu.xaml <Page> Content.xaml

In order for this model to work, I must be able to update the content of
Frame 2 whenever a user clicks a menu item in Frame 1. I have make Main.xaml
of type <Page> then this works fine. But if Main.xaml is of type <Window>
then I receive the following error message: "Hyperlink target not found."

Could anybody explain to me why this happens? Also ideally I do not want
Main.xaml to be of type <Page> because I don't want a navigation bar to be
displayed at the top of my application. Any ideas how I can get around this
problem and still maintain the architecture above?

thanks.



My System SpecsSystem Spec
Old 05-22-2006   #2 (permalink)
Ashish Shetty [MSFT]


 
 

Re: Problems Using Frames

You can specify ShowsNavigationUI as false on the Page, and get rid of the
navigation bar.

--
Ashish Shetty [MSFT]
Program Manager, Windows Presentation Foundation (Avalon)
Blog: http://nerddawg.blogspot.com
---



"Fidget Brain" <no.spam@martinthrelly@yahoo.com> wrote in message
news:uDii8BTfGHA.2416@TK2MSFTNGP03.phx.gbl...
>I am having a problem. please allow me to explain.
>
> my application is essentially an empty shell which contains 2 frames. A
> menu gets loaded into the first frame, and the other frame displays
> different content, depending upon which menu item a user clicks. The
> layout is shown below. I like this architecture because it gives me good
> code separation. It means I can keep my menu logic in one file, and I can
> separate my content logic into different files:
>
> <Window> Main.xaml
> | |
> Frame 1 Frame 2
> | |
> <Page> Menu.xaml <Page> Content.xaml
>
> In order for this model to work, I must be able to update the content of
> Frame 2 whenever a user clicks a menu item in Frame 1. I have make
> Main.xaml of type <Page> then this works fine. But if Main.xaml is of type
> <Window> then I receive the following error message: "Hyperlink target not
> found."
>
> Could anybody explain to me why this happens? Also ideally I do not want
> Main.xaml to be of type <Page> because I don't want a navigation bar to be
> displayed at the top of my application. Any ideas how I can get around
> this problem and still maintain the architecture above?
>
> thanks.
>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
How many Frames Per Second in WLM? Live Messenger
Frames Per Second in WLM? Live Messenger
FRAMES!!!! Vista music pictures video
frames Vista General
IE7 and Frames Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46