Click here to Skip to main content
15,897,519 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: How to send key Pin
rhuiden10-Feb-10 2:17
rhuiden10-Feb-10 2:17 
GeneralRe: How to send key Pin
AksharRoop10-Feb-10 2:38
AksharRoop10-Feb-10 2:38 
GeneralRe: How to send key Pin
rhuiden10-Feb-10 3:29
rhuiden10-Feb-10 3:29 
QuestionReading Web Servers File System Pin
Jammer9-Feb-10 10:42
Jammer9-Feb-10 10:42 
AnswerRe: Reading Web Servers File System Pin
wolfbinary9-Feb-10 10:52
wolfbinary9-Feb-10 10:52 
GeneralRe: Reading Web Servers File System Pin
Jammer10-Feb-10 4:06
Jammer10-Feb-10 4:06 
GeneralRe: Reading Web Servers File System Pin
wolfbinary10-Feb-10 9:15
wolfbinary10-Feb-10 9:15 
QuestionMenu links are sometimes non-responsive to the Click Event???!!! Pin
Michael Eber8-Feb-10 11:51
Michael Eber8-Feb-10 11:51 
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?

XML
<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" TargetName="mainFrame" Foreground="#FF547C9F"/>
            <HyperlinkButton x:Name="xconnectlink_Copy" Tag="/Views/CarrierSetup.xaml"  Click="NavigateRequestHandler" Content="Exacent" BorderThickness="2,3,2,0" VerticalAlignment="Top" Margin="12,4,3,0" NavigateUri="/Views/ManageCrossConnects.xaml" TargetName="mainFrame" Foreground="#FF547C9F"/>
            <HyperlinkButton x:Name="buildinglink" Tag="/Views/NewBuidingSetup.xaml" Click="NavigateRequestHandler" Content="Buildings" BorderThickness="2,3,2,0" VerticalAlignment="Top" Margin="12,4,3,0" NavigateUri="/Views/NewBuildingSetup.xaml" TargetName="mainFrame" Foreground="#FF547C9F"/>
        </StackPanel>
    </Border>
</StackPanel>



This is the logic that NavigateRequestHandler implements:

C#
private void NavigateRequestHandler( object sender, RoutedEventArgs args )
{
    HyperlinkButton requestor = sender as HyperlinkButton;
    if ( requestor == null ) return;
    string uri = requestor.Tag.ToString( );
    this.mainFrame.Navigate( new Uri( uri, UriKind.Relative ) );
}

AnswerRe: Menu links are sometimes non-responsive to the Click Event???!!! Pin
Abhinav S8-Feb-10 23:46
Abhinav S8-Feb-10 23:46 
QuestionImage on form Pin
Syed Shahid Hussain8-Feb-10 11:11
Syed Shahid Hussain8-Feb-10 11:11 
AnswerRe: Image on form Pin
Not Active8-Feb-10 11:16
mentorNot Active8-Feb-10 11:16 
GeneralRe: Image on form Pin
Syed Shahid Hussain8-Feb-10 21:43
Syed Shahid Hussain8-Feb-10 21:43 
GeneralRe: Image on form Pin
Pete O'Hanlon8-Feb-10 21:52
mvePete O'Hanlon8-Feb-10 21:52 
QuestionWPF Pin
Syed Shahid Hussain8-Feb-10 11:08
Syed Shahid Hussain8-Feb-10 11:08 
AnswerRe: WPF Pin
Not Active8-Feb-10 11:17
mentorNot Active8-Feb-10 11:17 
AnswerRe: WPF Pin
V.8-Feb-10 21:25
professionalV.8-Feb-10 21:25 
QuestionProblem w/ ClickOnce deployment and EventLogs Pin
vsaratkar8-Feb-10 9:46
vsaratkar8-Feb-10 9:46 
QuestionDragging outlook attached documents into a WPF app Pin
RugbyLeague8-Feb-10 3:59
RugbyLeague8-Feb-10 3:59 
AnswerRe: Dragging outlook attached documents into a WPF app Pin
Pete O'Hanlon8-Feb-10 4:24
mvePete O'Hanlon8-Feb-10 4:24 
GeneralRe: Dragging outlook attached documents into a WPF app Pin
RugbyLeague8-Feb-10 5:34
RugbyLeague8-Feb-10 5:34 
QuestionMVVM standardization [modified] Pin
Michael Sync7-Feb-10 5:46
Michael Sync7-Feb-10 5:46 
AnswerRe: MVVM standardization Pin
Wes Aday8-Feb-10 12:35
professionalWes Aday8-Feb-10 12:35 
QuestionDataTemplate with List binding Pin
pbalaga6-Feb-10 9:20
pbalaga6-Feb-10 9:20 
AnswerRe: DataTemplate with List binding Pin
Pete O'Hanlon6-Feb-10 9:58
mvePete O'Hanlon6-Feb-10 9:58 
GeneralRe: DataTemplate with List binding Pin
pbalaga6-Feb-10 21:35
pbalaga6-Feb-10 21:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.