A question about the Frame.Navigate #1598
Unanswered
Ac-Ada-Lovelace
asked this question in
Q&A
Replies: 1 comment
-
I see where the confusion comes from. Essentially what the documentation is saying, if you want to call On a side note, apparently you shouldn't form a dependency on the serialization mechanism for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a question regarding Microsoft's WinUI Gallery implementation. In the
NavigationRootPage.xaml.cs
file, there is a method defined as follows:The
rootFrame.Navigate(pageType, args, navigationTransitionInfo);
line uses the variableargs
, which is of typeNavigationRootPageArgs
. The definition ofNavigationRootPageArgs
is as follows:According to Microsoft's official documentation, the
parameter
for theNavigate
method is described as:Given this, how can this definition work with the
Navigate
method? Additionally, are there any other workable implementations for this scenario?I consulted ChatGPT and looked through some similar code on GitHub, but I haven't found anything helpful so far. I was expecting to understand how the NavigationRootPageArgs type can work with the Navigate method despite the documentation stating that the parameter should have a basic type (string, char, numeric, or GUID) to support parameter serialization using GetNavigationState.
Beta Was this translation helpful? Give feedback.
All reactions