.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Pure WPF NavigationServices example

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :WPF
I am trying to find a good example using NavigationServices and pages that will handle this simple scenario. Please keep in mind this is for a pure WPF desktop application. I am trying to create an app with 8 potential pages (4 main pages and 4 sub-pages). Main Pages: (Hardware | Configure | Transfer | Extract) Configure Sub Pages: (Configure 1 | Configure 2 | Configure 3 | Configure 4) All 8 pages should be in a Frame of my MainWindow and will can be represented by RadioButtons, a ListBox, or whatever would make the navigation easy. Clicking the RadioButton or selecting an item in the ListBox should load the respective page in the frame and update the navagation service so when I select "Back" or "Next" it is processed correctly. Here is how I would expect things to work. Lets say Transfer is the current page loaded in the frame. If I hit the Hardware RadioButton, the Hardware page should be loaded into the frame, the Hardware RadioButton checked (Transfer unchecked). The Transfer page should then be placed on the NavigationServices Back stack. This seems like it should be very simple but I cannot find a good concise example. Also, I am familiar with RoutedCommands and CommandBinding and know this type of navigation can be done with commands tied to all of the RadioButtons. However, I want to incorporate the NavigationServices to get the next/back stack

View Complete Post

More Related Resource Links

Pure C++: How Templates and Generics Work Together


I'm closing out this series of columns on generic programming in the Microsoft® . NET Framework by showing how templates and generics do and do not work together, and pointing out a pitfall with the current implementation of templates under Visual C++® 2005.

Stanley B. Lippman

MSDN Magazine April 2006

Pure C++: Live Source Browsing in Visual C++


If you're wondering where Stan Lippman is, we're happy to report that he has graciously granted us the use of his column this month to talk about some of the recent work the Visual C++ team has been doing to improve developer productivity.

Boris Jabes and Ameya Limaye

MSDN Magazine February 2006

Pure C++: Hello, C++/CLI


C++/CLI is a self-contained, component-based dynamic programming language that, like C# or Java, is derived from C++. In fact, you can look at it as a natural step in the evolution of C. Stanley Lippman, who was there from the beginning, provides some insight.

Stanley B. Lippman

MSDN Magazine Visual Studio 2005 Guided Tour 2006

Pure C++: Reflecting on Generic Types


A funny thing happened to templates on their way to the common language runtime (CLR)-they lost their {type} identity. This is analogous to what happens with macros under native programs. Just as the C/C++ compilers have no awareness of macro preprocessor expansions, the CLR has no awareness of template instantiations.

Stanley B. Lippman

MSDN Magazine December 2005

Pure C++: Invoking Generic or Function Templates


As I promised last time, in this month's column I'll walk through the process of defining and invoking a generic or template function under C++\CLI. A function template or a generic function begins with the template or generic keyword followed by its parameter list.

Stanley B. Lippman

MSDN Magazine October 2005

Pure C++: Generic Programming: Template Specialization


As I discussed in my last column, a param-eterized type that does more than simple storage and retrieval is constrained as to the acceptable types that may be safely bound to it (see Pure C++: CLR Generics Versus C++ Templates.

Stanley B. Lippman

MSDN Magazine August 2005

Pure C++: CLR Generics Versus C++ Templates


Visual Studio® 2005 brings the type parameter model of generic programming to the Microsoft® . NET Framework. C++/CLI supports two type parameter mechanisms-common language runtime (CLR) generics and C++ templates.

Stanley B. Lippman

MSDN Magazine June 2005

Pure C++: Generic Programming Under .NET


Visual Studio® 2005 brings the type parameter model of generic programming to the Microsoft® . NET Framework. Parameterized types are, of course, standard fare for C++ programmers. So, for those who are unfamiliar with them, I'll give a brief introduction to generic programming in my next few columns.

Stanley B. Lippman

MSDN Magazine April 2005

Pure C++: Hello, C++/CLI


Welcome to my first column for MSDN®Magazine. I had actually written a completely different first column-one on the new generic programming support in Visual Studio® 2005. Reviewing it, though, I realized that it left far too many unanswered questions.

Stanley B. Lippman

MSDN Magazine February 2005

Using AuthenticationService from pure html Question?

After searching the web I'm completely confused as to what my options are for using the AuthenticationService from a pure html page (with JavaScript, so NO asp.net webform and NO ScriptManager. I didn't found any clear code snippets for my problem. What I found where some 'pieces' of the puzzle.Option 1using an Authentication.svc file (see hereunder), adapting web.config and using javascript to use the Sys.Services.AuthenticationService methods. However by just using the Sys.Services.AuthenticationService.login method as-is (with the 8 parameters) the system gives a 500 error.Authentication.svc<%@ ServiceHost Language="C#"    Service="System.Web.ApplicationServices.AuthenticationService"    Factory="System.Web.ApplicationServices.ApplicationServicesHostFactory" %>Option 2Setting  Sys.Services.AuthenticationService.set_path("Authentication_JSON_AppService.axd"); and using the Sys.Services.AuthenticationService methods; here Sys.Services.AuthenticationService.login/logout works just fine.Can someone please explain me the differences of both approaches and where can i find clear examples of both approaches?Many thanks.

what can be used for pure text string in vb.net (it is @"string" in c#)


I am trying to dynamically create an xml file in vb.net, please look at the code below ;

            Dim detay As XmlElement = doc.CreateElement("title")
            detay.InnerText = "<![CDATA[<p><span class='footer' >Urun  No:8232-3   <a href='www.lasagrada.com.tr'>URUN DETAYLARI</a> icin lutfen web sitemizi ziyaret ediniz <a href='www.lasagrada.com.tr'> CANLI DESTEK </a></span></p>]]>"

            Dim detay As XmlElement = doc.CreateElement("title")

         detay.InnerText = "<![CDATA[<p><span class='footer' >any info <a href='anylink'>.....</a> sometext <a href='anysite'> teachers </a&

A Pure Scala Front-End application using Scala.js and ScalaCSS

In my previous posts, I created an application 'Weather Report', based on Scala.js and explained how to write test-case in Scala.js using same application. Earlier I was creating html page using Scala.Js Jquery library. But code was not very clean and well structured.

I started exploring ScalaTags and ScalaCSS to make application more interactive and clean using Scala.js.

ScalaTags is HTML construction library for Scala which converts Scala code into HTML page. It is type-safe, so typos like dvi or inpt can be caught at compile time.

In the same way, ScalaCSS is CSS construction library for Scala, which converts scala code into CSS. It is also type-safe. You can create standalone CSS like SCSS/LESS, or inline styles.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend