Click here to Skip to main content
15,922,166 members
Home / Discussions / WPF
   

WPF

 
QuestionWindows Phone Pin
arkiboys31-Aug-11 7:43
arkiboys31-Aug-11 7:43 
QuestionMaster-Details binding of 2 related tables Pin
bitwise.csc31-Aug-11 2:29
bitwise.csc31-Aug-11 2:29 
AnswerRe: Master-Details binding of 2 related tables Pin
Wayne Gaylard31-Aug-11 4:32
professionalWayne Gaylard31-Aug-11 4:32 
GeneralRe: Master-Details binding of 2 related tables Pin
bitwise.csc31-Aug-11 4:59
bitwise.csc31-Aug-11 4:59 
GeneralRe: Master-Details binding of 2 related tables Pin
Pete O'Hanlon31-Aug-11 5:15
mvePete O'Hanlon31-Aug-11 5:15 
GeneralRe: Master-Details binding of 2 related tables Pin
bitwise.csc31-Aug-11 5:21
bitwise.csc31-Aug-11 5:21 
QuestionNavigate in Frame from code Pin
yesu prakash30-Aug-11 19:34
yesu prakash30-Aug-11 19:34 
AnswerRe: Navigate in Frame from code Pin
Mycroft Holmes30-Aug-11 22:24
professionalMycroft Holmes30-Aug-11 22:24 
I have a static method that I call from any forms code behind. The default frame is the main navigation frame but I can pass in a frame if required

C#
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)
{	
	if(!sViewName.StartsWith("/"))
	{sViewName = string.Format("/{0}",sViewName);}
		oFR.Navigate(new Uri(sViewName, UriKind.Relative));
}


And call it passing in the name of the view. The view is in the app.xaml of course. Do some research into Silverlight navigation projects.

C#
gUI.NavigateTo(sURL);

Never underestimate the power of human stupidity
RAH

QuestionData binding model: "Main->Details" Pin
bitwise.csc29-Aug-11 3:14
bitwise.csc29-Aug-11 3:14 
AnswerRe: Data binding model: "Main->Details" Pin
Wayne Gaylard29-Aug-11 3:24
professionalWayne Gaylard29-Aug-11 3:24 
GeneralRe: Data binding model: "Main->Details" Pin
bitwise.csc29-Aug-11 3:30
bitwise.csc29-Aug-11 3:30 
GeneralRe: Data binding model: "Main->Details" Pin
Wayne Gaylard29-Aug-11 3:42
professionalWayne Gaylard29-Aug-11 3:42 
GeneralRe: Data binding model: "Main->Details" [modified] Pin
bitwise.csc29-Aug-11 3:51
bitwise.csc29-Aug-11 3:51 
GeneralRe: Data binding model: "Main->Details" Pin
bitwise.csc29-Aug-11 11:14
bitwise.csc29-Aug-11 11:14 
GeneralRe: Data binding model: "Main->Details" Pin
Wayne Gaylard29-Aug-11 22:03
professionalWayne Gaylard29-Aug-11 22:03 
QuestionTutorial to display Google Maps using WPF-WCF Pin
Member 819216328-Aug-11 5:24
Member 819216328-Aug-11 5:24 
AnswerRe: Tutorial to display Google Maps using WPF-WCF Pin
Abhinav S28-Aug-11 22:19
Abhinav S28-Aug-11 22:19 
QuestionRound corner border not that easy Pin
Zapacila27-Aug-11 22:36
Zapacila27-Aug-11 22:36 
QuestionA Combobox size within menu [modified] Pin
Saksida Bojan27-Aug-11 6:35
Saksida Bojan27-Aug-11 6:35 
AnswerRe: A Combobox size within menu Pin
Abhinav S27-Aug-11 7:02
Abhinav S27-Aug-11 7:02 
GeneralRe: A Combobox size within menu Pin
Saksida Bojan27-Aug-11 8:08
Saksida Bojan27-Aug-11 8:08 
QuestionConnecting a C# Array to a Listbox Control 2 ways Pin
MacAllen26-Aug-11 19:45
MacAllen26-Aug-11 19:45 
AnswerRe: Connecting a C# Array to a Listbox Control 2 ways Pin
Abhinav S26-Aug-11 21:29
Abhinav S26-Aug-11 21:29 
QuestionConditional Controls in WPF? Pin
MacAllen26-Aug-11 19:34
MacAllen26-Aug-11 19:34 
AnswerRe: Conditional Controls in WPF? Pin
VallarasuS26-Aug-11 20:52
VallarasuS26-Aug-11 20:52 

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.