Skip to content

Linking XAML Page on Tile #4173

Answered by Nopsii
Nopsii asked this question in Q&A
Aug 27, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Hi i found a solution to this. I was a little bit busy the last days but wanted to share my code (maybe it helps someone).
Sadly i found no option to link it directly in the XAML where i put the code of the Tile like using a TabControl and put local:myXAML as content.

I made a public function in my MainWindow and a Frame in the XAML (or wherever you want to navigate from).

public static void callPage(string _myPage)
        {
            var test = new Uri(_myPage + ".xaml", UriKind.RelativeOrAbsolute);
            mainFrame.Source = null;
            mainFrame.Source = new Uri(_myPage + ".xaml", UriKind.RelativeOrAbsolute);
        }
 <Frame x:Name="MainFrame" NavigationUIVisibility="Hi…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Nopsii
Comment options

@timunie
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Nopsii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants