Menu links are sometimes non-responsive to the Click Event???!!!
-
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
-
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
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...