app without a window

essamce 621 Reputation points
2020-10-07T10:14:03.397+00:00

hi
MultiPage

the above project just have two pages and no windows.

Q1: how this works without window , where the Page control needs a host (frame) ?
Q2: when we use user control without code behind file (usercontrol.xaml only) ?
(or what is differences between a control with/without code behind)

thanks in advance

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
0 comments No comments
{count} votes

Accepted answer
  1. DaisyTian-1203 11,621 Reputation points
    2020-10-08T02:35:10.673+00:00

    A1:Page can be implemented as root element in Xaml file and can contain single element similar to window. The table shows the type of application that these resources can be set as the StartupUri, you can see the StartupUri in the App.xaml.
    30769-capture.png

    A2: The x:Class which in xaml code configures XAML markup compilation to join partial classes between markup and code-behind, if the xaml without it, it can be also used to the UI design.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful