Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Menu links are sometimes non-responsive to the Click Event???!!!

Menu links are sometimes non-responsive to the Click Event???!!!

Scheduled Pinned Locked Moved WPF
mobilewpfquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Michael Eber
    wrote on last edited by
    #1

    I have a menu page which contains a list of HyperLinkButton objects. At various times I will select an itme from the menu and when I click another link it does nothing. My xaml is defined as follows ... and all pages referenced exist. If I finally hit a link that works and go back to the link not working, the page will load. Any ideas as to why this happens?

            <StackPanel HorizontalAlignment="Left" Width="800">
            	<Image Margin="115,0,0,0" Source="LogoPrototype.png" Stretch="Fill" HorizontalAlignment="Left" Width="530" Height="71"/>
            	<Border Height="25" BorderThickness="0,1">
            		<Border.BorderBrush>
            			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            				<GradientStop Color="#FFCDD9F0" Offset="0"/>
            				<GradientStop Color="#FF2C68CE" Offset="1"/>
            			</LinearGradientBrush>
            		</Border.BorderBrush>
            		<StackPanel Orientation="Horizontal">
            			<HyperlinkButton x:Name="customerlink" Tag="/Views/CustomerAdmin.xaml" Click="NavigateRequestHandler" BorderThickness="0" VerticalAlignment="Top" Content="Customers" Margin="12,4,3,0" NavigateUri="/Views/CustomerAdmin.xaml" TargetName="mainFrame" Foreground="#FF547C9F" />
            			<HyperlinkButton x:Name="contactLink" Tag="/Views/ManageCustomerLocations.xaml" Click="NavigateRequestHandler" Content="Contacts" BorderThickness="2,3,2,0" VerticalAlignment="Top" Margin="12,4,3,0" NavigateUri="/Views/ContactManager.xaml" TargetName="mainFrame" Foreground="#FF547C9F" Cursor="Hand"/>
            			<HyperlinkButton x:Name="locationlink" Tag="/Views/CarrierSetup.xaml"  Click="NavigateRequestHandler" Content="Locations" BorderThickness="2,4,2,0" VerticalAlignment="Top" Margin="12,4,3,0" TargetName="mainFrame" Foreground="#FF547C9F" NavigateUri="/Views/ManageCustomerLocations.xaml"/>
            			<HyperlinkButton x:Name="carrierlink" Tag="/Views/CarrierSetup.xaml"  Click="NavigateRequestHandler" Content="Carriers" BorderThickness="2,3,2,0" VerticalAlignment="Top" Margin="12,4,3,0" NavigateUri="/Views/CarrierSetup.xaml" TargetName="mainFrame" Foreground="#FF547C9F"/>
            			<HyperlinkButton x:Name="xconnectlink" Tag="/Views/CarrierSetup.xaml"  Click="NavigateRequestHandler" Content="XConnects" BorderThickness="2,3,2,0" VerticalAlignment="Top" Margin="12,4,3,0" NavigateUri="/Views/ManageCrossConnects.xaml" TargetNa
    
    A 1 Reply Last reply
    0
    • M Michael Eber

      I have a menu page which contains a list of HyperLinkButton objects. At various times I will select an itme from the menu and when I click another link it does nothing. My xaml is defined as follows ... and all pages referenced exist. If I finally hit a link that works and go back to the link not working, the page will load. Any ideas as to why this happens?

              <StackPanel HorizontalAlignment="Left" Width="800">
              	<Image Margin="115,0,0,0" Source="LogoPrototype.png" Stretch="Fill" HorizontalAlignment="Left" Width="530" Height="71"/>
              	<Border Height="25" BorderThickness="0,1">
              		<Border.BorderBrush>
              			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
              				<GradientStop Color="#FFCDD9F0" Offset="0"/>
              				<GradientStop Color="#FF2C68CE" Offset="1"/>
              			</LinearGradientBrush>
              		</Border.BorderBrush>
              		<StackPanel Orientation="Horizontal">
              			<HyperlinkButton x:Name="customerlink" Tag="/Views/CustomerAdmin.xaml" Click="NavigateRequestHandler" BorderThickness="0" VerticalAlignment="Top" Content="Customers" Margin="12,4,3,0" NavigateUri="/Views/CustomerAdmin.xaml" TargetName="mainFrame" Foreground="#FF547C9F" />
              			<HyperlinkButton x:Name="contactLink" Tag="/Views/ManageCustomerLocations.xaml" Click="NavigateRequestHandler" Content="Contacts" BorderThickness="2,3,2,0" VerticalAlignment="Top" Margin="12,4,3,0" NavigateUri="/Views/ContactManager.xaml" TargetName="mainFrame" Foreground="#FF547C9F" Cursor="Hand"/>
              			<HyperlinkButton x:Name="locationlink" Tag="/Views/CarrierSetup.xaml"  Click="NavigateRequestHandler" Content="Locations" BorderThickness="2,4,2,0" VerticalAlignment="Top" Margin="12,4,3,0" TargetName="mainFrame" Foreground="#FF547C9F" NavigateUri="/Views/ManageCustomerLocations.xaml"/>
              			<HyperlinkButton x:Name="carrierlink" Tag="/Views/CarrierSetup.xaml"  Click="NavigateRequestHandler" Content="Carriers" BorderThickness="2,3,2,0" VerticalAlignment="Top" Margin="12,4,3,0" NavigateUri="/Views/CarrierSetup.xaml" TargetName="mainFrame" Foreground="#FF547C9F"/>
              			<HyperlinkButton x:Name="xconnectlink" Tag="/Views/CarrierSetup.xaml"  Click="NavigateRequestHandler" Content="XConnects" BorderThickness="2,3,2,0" VerticalAlignment="Top" Margin="12,4,3,0" NavigateUri="/Views/ManageCrossConnects.xaml" TargetNa
      
      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      Michael Eber wrote:

      hit a link that works

      Is this link that works the same one all the time? Then maybe your URIs are not somehow pointing to the right files.

      Me, I'm dishonest. And a dishonest man you can always trust to be dishonest.
      Honestly. It's the honest ones you want to watch out for...

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups