Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Page, Frame, Navigation windows in C# WPF

  • I would like to know the difference between page, frame, navigation windows in c# wpf
  • what is the best choice of them for wpf windows application?
  • in my application how to make fixed part (contain main buttons) and changeable part (show pages) after clicking buttons in fixed part
  • are there any good websites provides video tutorials for c# wpf from beginning to professional?

thank you

like image 974
Hatem Avatar asked Dec 19 '12 10:12

Hatem


People also ask

How do I navigate between pages in WPF?

You can navigate from one Page to another declaratively, by using a Hyperlink, or programmatically, by using the NavigationService. WPF uses the journal to remember pages that have been navigated from and to navigate back to them.

What is navigation in C#?

Navigation is the process of navigating from one page to another page among multiples pages within the application.

What are frames in WPF?

The WPF Frame control using XAML and C# supports content navigation within content. A Frame can be hosted within a Window, NavigationWindow, Page, UserControl, or a FlowDocument control. This XAML code shows how to create a Frame control and sets its Source property to load a XAML page within it.


1 Answers

A Page is much like a user control, only that is is displayed within a Frame, which again is part of a NavigationWindow. A NavigationWindow is a special kind of window that allows for page navigation and can display the respective controls for navigating pages.

A paged application is a good choice if you want Wizard-like functionality, or if the user experience should be comparable to what you get when browsing the web. In many cases, using standard WPF windows is a better choice.

The NavigationWindow already contains a "fixed part" that can contain controls. You can also use a normal window, place a Frame in it and then - through proper layout - create your own "fixed parts". Navigation would then come down to calling the navigation methods the Frame provides.

like image 95
Thorsten Dittmar Avatar answered Sep 28 '22 04:09

Thorsten Dittmar