-
Error
Xaml
C#
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 3 replies
-
I have the content presenter set up from the main window rather than from a page.
|
Beta Was this translation helpful? Give feedback.
-
And how would i use the thing in a page like settings which is what im trying to use the content dialog in? |
Beta Was this translation helpful? Give feedback.
-
Xaml for my ContentDialog
c# code for it
|
Beta Was this translation helpful? Give feedback.
-
Also even if do it inside the main window same error about contentpresenter not being set |
Beta Was this translation helpful? Give feedback.
-
C# mainwindow
|
Beta Was this translation helpful? Give feedback.
-
C# VIEWMODEL for mainwindow
|
Beta Was this translation helpful? Give feedback.
-
mainwindow xaml
|
Beta Was this translation helpful? Give feedback.
Change the constructor of your dialog to include ": base(contentPresenter)"