What is the difference between page and window in wpf




















Improve this question. Danny Beckett Add a comment. Active Oldest Votes. Improve this answer. Jimmy Jimmy 5, 1 1 gold badge 21 21 silver badges 21 21 bronze badges. If a new Page is opened the previous page is destroyed and it's code stop's executing , But when a new window is opened both Window's code run parallel unless ShowDialog ; is used — user Henk Holterman Henk Holterman k 28 28 gold badges silver badges bronze badges. Page Control can be contained in Window Control but vice versa is not possible You can use Page control within the Window control using NavigationWindow and Frame controls.

Sanket Gawade Sanket Gawade 2 2 silver badges 8 8 bronze badges. It also offers rich, interactive, animated, hardware accelerated, vector 2D and 3D capabilities for developing applications. It does not offer any rich, Interactive, animated, hardware accelerated, vector 2D and 3D capabilities as compared to WPF.

It has an inbuilt story boarding feature and animation model, it has the ability to use business objects in UI declaratively. It does not provide such features. Recommended Articles. Article Contributed By :. Easy Normal Medium Hard Expert. Writing code in comment? Please use ide. Load Comments. What's New. Most popular in Difference Between. Page is a control which can be hosted in other container controls like NavigationWindow or Frame. Page control has its own goal to serve like other controls e.

Page is to create browser like applications. So if you host Page in NavigationWindow, you will get the navigation implementation built-in. Pages are intended for use in Navigation applications usually with Back and Forward buttons, e. Internet Explorer. WPF provides support for browser style navigation inside standalone application using Page class.

Navigate new Uri "Page2. Relative ; Generally it is easier to do the first, because you can also set properties of Page2. You can also create instances of various pages Page1, Page2, etc and store them in your Application object, then switch to them like this: NavigationSerivce.

Navigate App. Page2 ; This way if you ever navigate to Page2 later you will get exactly the same Page2 object. Only authorized users can answer the question. Please sign in first, or register a free account. Not the answer you're looking for?



0コメント

  • 1000 / 1000