Open HyperLink in different Stackpanel

Hi all,
I am new to WPF. I have created two stackpanels . In first stackpanel I have created few HyperLink controls. I want the hyperlink to open the new xaml page in second hyperlink. But I am unable to achieve it.
suppose I click on "Build Trimmer" hyperlink from left side stackpanel, it should open the xaml file in second stackpane( right side stackpanel).The name of the second Stackpanel is "contentpanel". I have used the below code but its not
working.
              <TextBlock FontSize="25">
                <Hyperlink NavigateUri="Page1.xaml#contentpanel" >Build Trimmer </Hyperlink>
                </TextBlock>
                <TextBlock FontSize="25">
                <Hyperlink NavigateUri="Page1.xaml#contentpanel" >ISO Generator </Hyperlink>
                </TextBlock>
                <TextBlock FontSize="25">
                <Hyperlink NavigateUri="Page1.xaml#contentpanel" >Upload </Hyperlink>
                </TextBlock>
                <TextBlock FontSize="25">
                <Hyperlink NavigateUri="Page1.xaml#contentpanel" >Help </Hyperlink>
                </TextBlock>
Please help me with this.
Thanks,

Hello Vishwajeet,
The following thing did work:
Hyperlink NavigateUri="Page1.xaml#contentpanel"
For example,if you code like the following:
Page1:
<Page x:Class="WPFBrowserNavigate.Page1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="311.638" d:DesignWidth="572.845"
Title="Page1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" FontSize="25">
<Hyperlink NavigateUri="Page1.xaml#textbox1" >Build Trimmer </Hyperlink>
</TextBlock>
<TextBlock Grid.Row="1" FontSize="25">
<Hyperlink NavigateUri="http://search.msn.com" >ISO Generator </Hyperlink>
</TextBlock>
<TextBlock Grid.Row="2" FontSize="25">
<Hyperlink NavigateUri="Page2.xaml#textbox2" >Upload </Hyperlink>
</TextBlock>
<TextBlock Grid.Row="3" FontSize="25">
<Hyperlink NavigateUri="Page2.xaml#contentpanel" >Help </Hyperlink>
</TextBlock>
<StackPanel Name="contentpanel" Grid.Column="1" Grid.RowSpan="4">
<TextBox Name="textbox1">12345</TextBox>
</StackPanel>
</Grid>
</Page>
Page2:
<Page x:Class="WPFBrowserNavigate.Page2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300"
Title="Page2">
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<TextBox Name="textbox1" Grid.Row="0">1</TextBox>
<TextBox Name="textbox2" Grid.Row="1">2</TextBox>
</Grid>
</Page>
You can see it will redirect you to the right page. That is how NavigateUri works, navigate to a element container page.
But here you are on the same page so navigate direct you to current page. Would you mind to tell us what do you want to show on your right stackpanel?
Best regards, 
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Hyperlink for an Object need to be open in a different window

    Hi Guyz,
      I have a Crystal Report which has few sub reports. In one of the Sub Report I have created a Hyperlink for an object using the formula Editor. This report is viewed from a different Portal with the help of ASP Pages. For some reason when I run the report and click on the Hyperlink, it is opening in the same window.
    I want the report to be opened in a different window. Following is the formula I am using as a Hyperlink in formula Editor.
    imgAddress = "http://<server>:8080/index.jsp?action=filter&username=anonymous&password=1&"
    imgAddress = imgAddress + "&drawer=Invoices&folder="  + "&tab=" + trim({stp_AC290;1.INVOICE})
    In the ASP page i am using a DHTML Viewer. Sometimes when I am using ActiveXviewer it is opening as expected.
    crystal Reports version: Crystal Reports 2008
    BO - BOXI 3.1
    Plz help me out!!

    same as your other post:
    moved to .NET Developer forum.
    It appears you are using ASP, it's no longer supported in CR 2008 but can you clarify which SDK you are using?
    Thank you
    Don

  • Open hyperlink in numbers in ipad

    Hi,
    I started to use Numbers on my iPad and tried to open hyperlink
    to view website in my spreadsheet, but I don't know how to.
    Checked the Help Section, but don't understand it.
                                  Tap Open to open a URL.                              Numbers recedes to the background and Safari opens the linked webpage.                          
    Because when I tap, I was presented with a few option, Cut, Copy, Paste, Delete and Fill,
    none of them ask to open link.
    Please advice.
    Simon Choie

    Here you are in a forum dedicated to Numbers for OSX.
    Your question is about Numbers for iOS which is a different application.
    Would be more efficient to ask in the forum dedicated to iWork for iOS.
    https://discussions.apple.com/community/app_store/iwork_for_ios
    Yvan KOENIG (VALLAURIS, France) jeudi 15 décembre 2011 17:42:58
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Open Tables in Different Tabs

    I am very new to sqldeveloper and I can't figure out how to get a second table to open in a different tab. It always wants to open in the same tab as the first table I open.

    Note the red Freeze pin in the tab's mini-toolbar to toggle reuse of the same tab.
    To freeze automatically: Preferences - Database - ObjectViewer.
    Have fun,
    K.

  • Hi I had lightroom 4 on windows 8. I get a message saying I can't open LR as it is already open in a different catalog. There is no other catalog. Rebooting hasn't worked & I installed 4.4. It worked for one day then I got the same message.  I uninstalled

    Hi I have lr 4 on a windows 8 computer. I keep getting an error message when I try to open LR. It states that the catalog is already open in a different location, close this, then try to open lr. I have tried re booting, opening a new catalog, upgrading to 4.4, removed 4.4 & still get the same message. Please help!!!

    Try going to your lightroom folder (the default is usually inside Pictures or My pictures) where the catalog is located. Don’t touch any .lrcat files but if you see a similar file with the word Lock, you can delete it. Then try launching Lightroom.

  • How to save open files in different projects/workspaces?

    Is it possible at all to have Dreamweaver save different sets of open files in different projects/workspaces like every other IDE out there?
    I can't imagine every web developer is working on ONE project at a time and doesn't feel the need to switch to another one and have his last open files restored from that specific project..
    Am I missing something?

    Very wrong
    I am talking about saving different sessions of open files automatically (and assign them to user-defined projects that may or may not contain several sites or just one site).

  • Cannot open hyperlinks

    After upgrading to Lion, I cannot open hyperlinks in Mac Mail.  I appreciate any suggestions.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    As Guest, test. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on some Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode.) Post the results of steps 1 and 2.

  • Having upgrade to mountain lion, Mail can't open hyperlinks

    I've upgraded to Mountain lion and now Mail can't open hyperlinks. How can i change this?

    What happens when you try?

  • Cant open Hyperlinks on my computer, how do I fix?

    Cant open Hyperlinks on my computer, how do I fix? OS X version 10.9.5. Terryfrombinghamton

    Hi Terry ..
    Might be a cookies, cache, extensions, or plug-ins issue.
    From your Safari menu bar click Safari > Preferences then select the Privacy tab.
    Click:   Remove All Website Data
    Then delete the cache.
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.
    If that didn't help, from the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.
    If it's not an extensions issue, try troubleshooting third party plug-ins.
    Back to Safari > Preferences. This time select the Security tab. Deselect:  Allow plug-ins. Quit and relaunch Safari to test.
    If that made a difference, instructions for troubleshooting plugins here.

  • Outlook 2013 cannot open hyperlinks or attachments

    I have Windows 7 64bit and Office 2013 32bit. For several weeks I have been unable to open attached files, although I could preview attached image files. Since the latest update (Jan 2014) I am
    unable to open hyperlinks either. Also since the latest update I get the message "Something unexpected went wrong with this URL: http:....... Access is denied". Also since
    the latest update I get messages regarding my Add-Ins every time I open Outlook:
    I have tried opening Outlook as administrator and clicking Trust all..., I have reset IE11 completely, I have run the FixIt program (http://support.microsoft.com/kb/310049)
    without success. I would greatly appreciate a solution to these problems.

    Hi,
    If we open Outlook in safe mode, can you still reproduce these problems? To start Outlook in safe mode, press Windows key + R, type
    outlook.exe /safe in the Run dialog and press Enter.
    For the hyperlink issue, if we copy the hyperlink to your IE, does it open properly?
    Do you installed other browser on your computer? If so, please try to set IE as your default browser to test the issue again.
    For the attachment issue, did you get any error message when it fails to open? If we save the attachment to local and then open it, will it open properly?
    In addition, please try to clear the Outlook secure temporary folder to check the result. See:
    http://www.slipstick.com/outlook/securetemp-files-folder/
    If you installed any security programs, please also try to temporarily turn off them to test the issue again.
    Please let me know the result.
    Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Would crtl+f work or is there another way to search or quickly hyperlink to different sections on the page?

    We have a very long extended data tab full of custom sections and we would like to be able to give a user a way to search the page quickly.
    Would crtl+f work or is there another way to search or quickly hyperlink to different sections on the page?

    I don't know enough about your use case to provide specific direction but you may be able to use the 6.1.1 UI extensibility point.  For example, you could add an anchor link collection control that scrolls the page to the top of each section when selected. 

  • Open finder in different desktop sessions

    How can we open finder in different desktop sessions.....
    Or alternatively switch diff instances of finder like Alt+Tab in Windows

    Thanks X423424X,
    Those aritcles were helpful in some way.
    I can assign Finder to multiple desktop but if I access it from any desktop it opens the same instance of Finder.
    Is there a way by which I can open different instance of Finder in different desktop.
    My goal is to switch between different instances of Finder, quickly.

  • Acrobat 8 problems one user opening hyperlinks, works on admin account

    Hi,
    I have a user that has trouble opening hyperlinks on Adobe Pro 8. I can open hyperlinks fine when running as admin account and in FoxItReader as the user. I've also mirrored the settings of the admin account for Adobe Pro 8 with the user's settings for Adobe Pro 8 and it still doesn't work. Any idea on what's going on? I've also added full control permissions for the user to the Adobe folder in Program Files. Thanks for any help.

    Hi,
    I've tried doing that and nothing is in the Blocked list. My settings are:
    1. Let me specify a list of allowed and blocked web sites
    2. nothing in the list of My Websites
    3. Always Ask, for Default behavior for web sites that are not in the above list
    I've checked out many other sites looking for an answer to this problem but nothing would work. I figured I might as well see if there's anything else that I can do. Thanks for the help.

  • Mail on MacBook won't open hyperlinks behind mail.

    After updating to Yosemite 10.10.2 I no longer can open hyperlinks behind Mail. I can open them by clicking on them which takes me directly to the web page, however, some emails have multiple links which I wish to open without leaving Mail first. Prior to the OS upgrade this problem would occur with a few emails but now it happens with all emails.

    LadyC,
    Quit/Force Quit Calendar, then paste this text ~/Library into the Finder>Go>Go to Folder...window and select "Go." This will open the Users Library Folder.
    Next open the Calendars and move any any files with "Cache" listed in the name field to your Desktop.
    Also open the Preferences Folder in the same Library, and move the com.apple.iCal.plist file to the Desktop.
    Log out/in or restart, and open Calendar.

  • I try to open hyperlinks in my email (Outlook) but I get this message: "this operation has been canceled due to restrictions in effect on this computer. Please contact your system administrator". I am running Firefox 3.6.6

    I try to open hyperlinks in my email (Outlook) but I get this message: "this operation has been canceled due to restrictions in effect on this computer. Please contact your system administrator". I am running Firefox 3.6.6
    == This happened ==
    Not sure how often

    See http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q310049 You receive an error message when you click a hyperlink in Outlook (default browser)

Maybe you are looking for