A Window represents a top-level window in an application and typically has its own menu, title bar and buttons. A Page is used in navigation-based apps and does not have its own title bar or buttons, instead being part of a larger navigation framework.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
40 views1 page
Answer XAML 4
A Window represents a top-level window in an application and typically has its own menu, title bar and buttons. A Page is used in navigation-based apps and does not have its own title bar or buttons, instead being part of a larger navigation framework.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Powered by AI
Copilot
Certainly! Let’s explore the differences between a Window and a Page in XAML:
1. Window:
Represents a top-level window in your application.
Typically used for standalone applications with their own UI. Can have its own menu, title bar, and minimize/maximize/close buttons. Often used for main application windows. Example use case: A photo viewer application with its own window. Inherits from System.Windows.Window (in WPF).
2. Page:
Used in navigation-based applications (e.g., WPF navigation or UWP).
Part of a navigation framework and represents a single page within the app. Does not have its own title bar or minimize/maximize/close buttons. Often used for content within a larger application. Example use case: A settings page within an app. Inherits from System.Windows.Controls.Page (in WPF).
In summary, choose a Window for standalone UIs and a Page for navigation-based scenarios. 😊