Click here to Skip to main content
15,903,854 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: problem with cross-domain silverlight and WCF Pin
Pete O'Hanlon29-Mar-11 22:25
mvePete O'Hanlon29-Mar-11 22:25 
GeneralRe: problem with cross-domain silverlight and WCF Pin
Yanshof29-Mar-11 23:23
Yanshof29-Mar-11 23:23 
GeneralRe: problem with cross-domain silverlight and WCF Pin
Pete O'Hanlon29-Mar-11 23:33
mvePete O'Hanlon29-Mar-11 23:33 
Questionusercontrol - silverlight 4.0 Pin
arkiboys29-Mar-11 5:04
arkiboys29-Mar-11 5:04 
AnswerRe: usercontrol - silverlight 4.0 Pin
Yanshof29-Mar-11 5:15
Yanshof29-Mar-11 5:15 
AnswerRe: usercontrol - silverlight 4.0 Pin
Mycroft Holmes29-Mar-11 13:04
professionalMycroft Holmes29-Mar-11 13:04 
GeneralRe: usercontrol - silverlight 4.0 Pin
arkiboys30-Mar-11 4:39
arkiboys30-Mar-11 4:39 
GeneralRe: usercontrol - silverlight 4.0 Pin
Mycroft Holmes30-Mar-11 14:13
professionalMycroft Holmes30-Mar-11 14:13 
I have a static class that handles the navigation.

public static class MainUI
{

    public static void NavigateTo(string sViewName)
    {
        //Get the content frame from the main page via the application
        Frame oFR = (Application.Current.RootVisual as FrameworkElement).FindName("MainContent") as Frame;
        NavigateTo(oFR,sViewName);
    }

    public static void NavigateTo(Frame oFR, string sViewName)
    {
        oFR.Navigate(new Uri(sViewName, UriKind.Relative));
    }


The default is to use the main page navigate frame but I also use navigate frames within other pages.

private void ControlNavigate(object sender, RoutedEventArgs e)
    {
        Frame oFrame = this.FilterContent;//this is a frame on a non main page view
        string sURL = "Blank";
        switch ((sender as HyperlinkButton).Content.ToString())
        {
            case "Accounts":
                sURL = "AccountFilter";
                break;
            case "Elements":
                sURL = "ElementNodeFilter";
                break;
            case "Products":
                sURL = "ProductFilter";
                    break;
        }
        gUI.NavigateTo(oFrame, sURL);

    }

Never underestimate the power of human stupidity
RAH

GeneralRe: usercontrol - silverlight 4.0 [modified] Pin
arkiboys30-Mar-11 18:33
arkiboys30-Mar-11 18:33 
QuestionChange the Seleted Item of a Combobox in a Child window from a Parent Window Pin
Vimalsoft(Pty) Ltd29-Mar-11 4:28
professionalVimalsoft(Pty) Ltd29-Mar-11 4:28 
AnswerRe: Change the Seleted Item of a Combobox in a Child window from a Parent Window Pin
Mycroft Holmes29-Mar-11 13:12
professionalMycroft Holmes29-Mar-11 13:12 
GeneralRe: Change the Seleted Item of a Combobox in a Child window from a Parent Window Pin
Vimalsoft(Pty) Ltd29-Mar-11 19:18
professionalVimalsoft(Pty) Ltd29-Mar-11 19:18 
QuestionWPF Windows refusing to open from Office Ribbon Pin
vikas bhandari28-Mar-11 5:06
vikas bhandari28-Mar-11 5:06 
AnswerRe: WPF Windows refusing to open from Office Ribbon Pin
SledgeHammer0128-Mar-11 6:22
SledgeHammer0128-Mar-11 6:22 
GeneralRe: WPF Windows refusing to open from Office Ribbon Pin
vikas bhandari28-Mar-11 8:04
vikas bhandari28-Mar-11 8:04 
GeneralRe: WPF Windows refusing to open from Office Ribbon Pin
Pete O'Hanlon28-Mar-11 8:39
mvePete O'Hanlon28-Mar-11 8:39 
QuestionThe Property 'Content' is set more than once - I cant see were I am doing this Pin
Paul Harsent25-Mar-11 2:08
Paul Harsent25-Mar-11 2:08 
AnswerRe: The Property 'Content' is set more than once - I cant see were I am doing this Pin
Pete O'Hanlon25-Mar-11 2:16
mvePete O'Hanlon25-Mar-11 2:16 
GeneralRe: The Property 'Content' is set more than once - I cant see were I am doing this Pin
Paul Harsent25-Mar-11 2:24
Paul Harsent25-Mar-11 2:24 
GeneralRe: The Property 'Content' is set more than once - I cant see were I am doing this Pin
Ian Shlasko25-Mar-11 2:44
Ian Shlasko25-Mar-11 2:44 
GeneralRe: The Property 'Content' is set more than once - I cant see were I am doing this Pin
Pete O'Hanlon25-Mar-11 2:56
mvePete O'Hanlon25-Mar-11 2:56 
AnswerRe: The Property 'Content' is set more than once - I cant see were I am doing this Pin
Abhinav S26-Mar-11 6:20
Abhinav S26-Mar-11 6:20 
QuestionWCF: Message Security with a User Name Client - how to retrieve username+pwd from server side on a per request basis? [modified] Pin
devvvy24-Mar-11 22:16
devvvy24-Mar-11 22:16 
AnswerRe: WCF: Message Security with a User Name Client - how to retrieve username+pwd from server side on a per request basis? Pin
SledgeHammer0125-Mar-11 11:02
SledgeHammer0125-Mar-11 11:02 
GeneralRe: WCF: Message Security with a User Name Client - how to retrieve username+pwd from server side on a per request basis? Pin
devvvy27-Mar-11 21:57
devvvy27-Mar-11 21:57 

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.